From 418589e7ad3edabda6403f66b728a65d35ed4451 Mon Sep 17 00:00:00 2001 From: Lipis Date: Tue, 2 Mar 2021 12:29:32 +0200 Subject: [PATCH] chore: Use @excalidraw/eslint-config (#3142) --- .eslintrc.json | 38 ++------------------------------------ package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 8 insertions(+), 36 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 7182199f0c..87e224fa76 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,40 +1,6 @@ { - "extends": ["prettier", "react-app"], - "plugins": ["prettier"], + "extends": ["@excalidraw/eslint-config", "react-app"], "rules": { - "@typescript-eslint/no-unused-vars": "warn", - "curly": "warn", - "dot-notation": "warn", - "import/no-anonymous-default-export": "off", - "no-console": [ - "warn", - { - "allow": ["warn", "error", "info"] - } - ], - "no-else-return": "warn", - "no-lonely-if": "warn", - "no-restricted-syntax": [ - "warn", - { - "message": "Use 't(...)' instead of literal text in JSX", - "selector": "JSXText[value=/\\w/]" - } - ], - "no-unneeded-ternary": "warn", - "no-unused-expressions": "warn", - "no-useless-return": "warn", - "no-var": "warn", - "object-shorthand": "warn", - "one-var": ["warn", "never"], - "prefer-arrow-callback": "warn", - "prefer-const": [ - "warn", - { - "destructuring": "all" - } - ], - "prefer-template": "warn", - "prettier/prettier": "warn" + "import/no-anonymous-default-export": "off" } } diff --git a/package.json b/package.json index 2bfb2abdf3..c03a45a06b 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "typescript": "4.1.5" }, "devDependencies": { + "@excalidraw/eslint-config": "1.0.0", "@excalidraw/prettier-config": "1.0.2", "@types/lodash.throttle": "4.1.6", "@types/pako": "1.0.1", diff --git a/yarn.lock b/yarn.lock index f711155bf4..78d4b52673 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1285,6 +1285,11 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" +"@excalidraw/eslint-config@1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@excalidraw/eslint-config/-/eslint-config-1.0.0.tgz#1cc527a88cfe20fd730496c1b631c3aecf9c825e" + integrity sha512-5SQFsQXO4vzny7OFSJr/DDPr1Mzeh6w0uwmZ0Fk2qjBcS5nhPtnx5KOTRPmpc6Hf5Ao57WK/MKI4lhCzw66V/A== + "@excalidraw/prettier-config@1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@excalidraw/prettier-config/-/prettier-config-1.0.2.tgz#b7c061c99cee2f78b9ca470ea1fbd602683bba65"