Ver código fonte

chore: Use @excalidraw/eslint-config (#3142)

vanilla_orig
Lipis 4 anos atrás
pai
commit
418589e7ad
Nenhuma conta vinculada ao e-mail do autor do commit
3 arquivos alterados com 8 adições e 36 exclusões
  1. 2
    36
      .eslintrc.json
  2. 1
    0
      package.json
  3. 5
    0
      yarn.lock

+ 2
- 36
.eslintrc.json Ver arquivo

@@ -1,40 +1,6 @@
1 1
 {
2
-  "extends": ["prettier", "react-app"],
3
-  "plugins": ["prettier"],
2
+  "extends": ["@excalidraw/eslint-config", "react-app"],
4 3
   "rules": {
5
-    "@typescript-eslint/no-unused-vars": "warn",
6
-    "curly": "warn",
7
-    "dot-notation": "warn",
8
-    "import/no-anonymous-default-export": "off",
9
-    "no-console": [
10
-      "warn",
11
-      {
12
-        "allow": ["warn", "error", "info"]
13
-      }
14
-    ],
15
-    "no-else-return": "warn",
16
-    "no-lonely-if": "warn",
17
-    "no-restricted-syntax": [
18
-      "warn",
19
-      {
20
-        "message": "Use 't(...)' instead of literal text in JSX",
21
-        "selector": "JSXText[value=/\\w/]"
22
-      }
23
-    ],
24
-    "no-unneeded-ternary": "warn",
25
-    "no-unused-expressions": "warn",
26
-    "no-useless-return": "warn",
27
-    "no-var": "warn",
28
-    "object-shorthand": "warn",
29
-    "one-var": ["warn", "never"],
30
-    "prefer-arrow-callback": "warn",
31
-    "prefer-const": [
32
-      "warn",
33
-      {
34
-        "destructuring": "all"
35
-      }
36
-    ],
37
-    "prefer-template": "warn",
38
-    "prettier/prettier": "warn"
4
+    "import/no-anonymous-default-export": "off"
39 5
   }
40 6
 }

+ 1
- 0
package.json Ver arquivo

@@ -49,6 +49,7 @@
49 49
     "typescript": "4.1.5"
50 50
   },
51 51
   "devDependencies": {
52
+    "@excalidraw/eslint-config": "1.0.0",
52 53
     "@excalidraw/prettier-config": "1.0.2",
53 54
     "@types/lodash.throttle": "4.1.6",
54 55
     "@types/pako": "1.0.1",

+ 5
- 0
yarn.lock Ver arquivo

@@ -1285,6 +1285,11 @@
1285 1285
     minimatch "^3.0.4"
1286 1286
     strip-json-comments "^3.1.1"
1287 1287
 
1288
+"@excalidraw/eslint-config@1.0.0":
1289
+  version "1.0.0"
1290
+  resolved "https://registry.yarnpkg.com/@excalidraw/eslint-config/-/eslint-config-1.0.0.tgz#1cc527a88cfe20fd730496c1b631c3aecf9c825e"
1291
+  integrity sha512-5SQFsQXO4vzny7OFSJr/DDPr1Mzeh6w0uwmZ0Fk2qjBcS5nhPtnx5KOTRPmpc6Hf5Ao57WK/MKI4lhCzw66V/A==
1292
+
1288 1293
 "@excalidraw/prettier-config@1.0.2":
1289 1294
   version "1.0.2"
1290 1295
   resolved "https://registry.yarnpkg.com/@excalidraw/prettier-config/-/prettier-config-1.0.2.tgz#b7c061c99cee2f78b9ca470ea1fbd602683bba65"

Carregando…
Cancelar
Salvar