Ver Fonte

update eslint config

Jordan Sexton há 3 anos atrás
pai
commit
bcf47eff05

+ 5 - 1
.eslintignore

@@ -1,5 +1,9 @@
-node_modules
+.github
+.next
+.parcel-cache
 
 docs
 lib
+build
+dist
 out

+ 9 - 4
packages/starter/react-ui-starter/.eslintrc.json → .eslintrc

@@ -1,16 +1,19 @@
 {
     "root": true,
-    "env": {
-        "browser": true
-    },
     "extends": [
         "eslint:recommended",
         "plugin:@typescript-eslint/recommended",
+        "plugin:prettier/recommended",
         "plugin:react/recommended",
         "plugin:react-hooks/recommended"
     ],
     "parser": "@typescript-eslint/parser",
-    "plugins": ["@typescript-eslint", "prettier", "react", "react-hooks"],
+    "plugins": [
+        "@typescript-eslint",
+        "prettier",
+        "react",
+        "react-hooks"
+    ],
     "settings": {
         "react": {
             "version": "detect"
@@ -20,6 +23,8 @@
         "@typescript-eslint/ban-ts-comment": "off",
         "@typescript-eslint/no-explicit-any": "off",
         "@typescript-eslint/no-unused-vars": "off",
+        "@typescript-eslint/no-empty-interface": "off",
+        "@typescript-eslint/consistent-type-imports": "error",
         "react/no-unescaped-entities": ["error", { "forbid": [">"] }]
     }
 }

+ 0 - 16
.eslintrc.json

@@ -1,16 +0,0 @@
-{
-    "root": true,
-    "env": {
-        "browser": true
-    },
-    "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
-    "parser": "@typescript-eslint/parser",
-    "plugins": ["@typescript-eslint", "prettier"],
-    "rules": {
-        "@typescript-eslint/ban-ts-comment": "off",
-        "@typescript-eslint/no-explicit-any": "off",
-        "@typescript-eslint/no-unused-vars": "off",
-        "@typescript-eslint/no-empty-interface": "off",
-        "@typescript-eslint/consistent-type-imports": "error"
-    }
-}

+ 0 - 4
packages/starter/material-ui-starter/.eslintignore

@@ -1,4 +0,0 @@
-.parcel-cache
-dist
-docs
-node_modules

+ 0 - 25
packages/starter/material-ui-starter/.eslintrc.json

@@ -1,25 +0,0 @@
-{
-    "root": true,
-    "env": {
-        "browser": true
-    },
-    "extends": [
-        "eslint:recommended",
-        "plugin:@typescript-eslint/recommended",
-        "plugin:react/recommended",
-        "plugin:react-hooks/recommended"
-    ],
-    "parser": "@typescript-eslint/parser",
-    "plugins": ["@typescript-eslint", "prettier", "react", "react-hooks"],
-    "settings": {
-        "react": {
-            "version": "detect"
-        }
-    },
-    "rules": {
-        "@typescript-eslint/ban-ts-comment": "off",
-        "@typescript-eslint/no-explicit-any": "off",
-        "@typescript-eslint/no-unused-vars": "off",
-        "react/no-unescaped-entities": ["error", { "forbid": [">"] }]
-    }
-}

+ 0 - 4
packages/starter/react-ui-starter/.eslintignore

@@ -1,4 +0,0 @@
-.parcel-cache
-dist
-docs
-node_modules