|
1 | 1 | {
|
2 |
| - "extends": "next/core-web-vitals" |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "parserOptions": { |
| 4 | + "sourceType": "module", |
| 5 | + "ecmaVersion": 2020, |
| 6 | + "ecmaFeatures": { |
| 7 | + "jsx": true |
| 8 | + } |
| 9 | + }, |
| 10 | + "env": { |
| 11 | + "browser": true, |
| 12 | + "es2021": true |
| 13 | + }, |
| 14 | + "extends": [ |
| 15 | + "standard", |
| 16 | + "eslint:recommended", |
| 17 | + "plugin:react/recommended", |
| 18 | + "plugin:react-hooks/recommended", |
| 19 | + "plugin:prettier/recommended", |
| 20 | + "plugin:jsx-a11y/recommended", |
| 21 | + "plugin:@typescript-eslint/recommended", |
| 22 | + "next/core-web-vitals" |
| 23 | + ], |
| 24 | + "plugins": ["@typescript-eslint", "react", "react-hooks", "jsx-a11y"], |
| 25 | + "rules": { |
| 26 | + "no-use-before-define": [0], |
| 27 | + "@typescript-eslint/no-use-before-define": "error", |
| 28 | + "@typescript-eslint/no-explicit-any": "off", |
| 29 | + "@typescript-eslint/no-empty-interface": "off", |
| 30 | + |
| 31 | + "react/prop-types": "off", |
| 32 | + "react/react-in-jsx-scope": "off", |
| 33 | + "react/jsx-no-useless-fragment": "error", |
| 34 | + |
| 35 | + "react-hooks/exhaustive-deps": "warn", |
| 36 | + "react-hooks/rules-of-hooks": "error", |
| 37 | + |
| 38 | + "import/order": [ |
| 39 | + "error", |
| 40 | + { |
| 41 | + "groups": [ |
| 42 | + "builtin", |
| 43 | + "external", |
| 44 | + ["parent", "internal", "sibling"], |
| 45 | + "index", |
| 46 | + "object" |
| 47 | + ], |
| 48 | + "pathGroups": [ |
| 49 | + { |
| 50 | + "pattern": "react*", |
| 51 | + "group": "external", |
| 52 | + "position": "before" |
| 53 | + }, |
| 54 | + { |
| 55 | + "pattern": "redux*", |
| 56 | + "group": "external", |
| 57 | + "position": "before" |
| 58 | + }, |
| 59 | + { |
| 60 | + "pattern": "gatsby*", |
| 61 | + "group": "external", |
| 62 | + "position": "before" |
| 63 | + } |
| 64 | + ], |
| 65 | + "pathGroupsExcludedImportTypes": ["react*", "redux*", "next*"], |
| 66 | + "newlines-between": "always", |
| 67 | + "alphabetize": { |
| 68 | + "order": "asc", |
| 69 | + "caseInsensitive": true |
| 70 | + } |
| 71 | + } |
| 72 | + ] |
| 73 | + }, |
| 74 | + "globals": { |
| 75 | + "Atomics": "readonly", |
| 76 | + "SharedArrayBuffer": "readonly" |
| 77 | + }, |
| 78 | + "settings": { |
| 79 | + "react": { |
| 80 | + "version": "detect" |
| 81 | + } |
| 82 | + } |
3 | 83 | }
|
0 commit comments