|
1 | 1 | { |
2 | | - "parser": "@typescript-eslint/parser", |
3 | | - "parserOptions": { |
4 | | - "ecmaVersion": 8, |
5 | | - "sourceType": "module", |
6 | | - "ecmaFeatures": { |
7 | | - "impliedStrict": true, |
8 | | - "experimentalObjectRestSpread": true |
9 | | - }, |
10 | | - "allowImportExportEverywhere": true |
11 | | - }, |
12 | | - "plugins": [ |
13 | | - "@typescript-eslint" |
14 | | - ], |
15 | | - "extends": [ |
16 | | - "eslint:recommended", |
17 | | - "plugin:@typescript-eslint/eslint-recommended", |
18 | | - "plugin:@typescript-eslint/recommended", |
19 | | - "prettier", |
20 | | - "prettier/@typescript-eslint" |
21 | | - ], |
22 | | - "env": { |
23 | | - "es6": true, |
24 | | - "browser": true, |
25 | | - "node": true, |
26 | | - "jest": true |
27 | | - }, |
28 | | - "rules": { |
29 | | - "func-names": [ |
30 | | - "error", |
31 | | - "as-needed" |
32 | | - ], |
33 | | - "no-shadow": "error", |
34 | | - "prefer-const": 0, |
35 | | - "@typescript-eslint/explicit-function-return-type": 0, |
36 | | - "@typescript-eslint/no-use-before-define": 0, |
37 | | - "@typescript-eslint/camelcase": 0, |
38 | | - "@typescript-eslint/no-var-requires": 0, |
39 | | - "@typescript-eslint/no-explicit-any": 0 |
40 | | - } |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "parserOptions": { |
| 4 | + "ecmaVersion": 8, |
| 5 | + "sourceType": "module", |
| 6 | + "ecmaFeatures": { |
| 7 | + "impliedStrict": true, |
| 8 | + "experimentalObjectRestSpread": true |
| 9 | + }, |
| 10 | + "allowImportExportEverywhere": true |
| 11 | + }, |
| 12 | + "plugins": ["@typescript-eslint", "react-hooks"], |
| 13 | + "extends": [ |
| 14 | + "eslint:recommended", |
| 15 | + "plugin:react/recommended", |
| 16 | + "plugin:@typescript-eslint/eslint-recommended", |
| 17 | + "plugin:@typescript-eslint/recommended", |
| 18 | + "prettier", |
| 19 | + "prettier/@typescript-eslint" |
| 20 | + ], |
| 21 | + "settings": { |
| 22 | + "react": { |
| 23 | + "version": "detect" |
| 24 | + } |
| 25 | + }, |
| 26 | + "env": { |
| 27 | + "es6": true, |
| 28 | + "browser": true, |
| 29 | + "node": true, |
| 30 | + "jest": true |
| 31 | + }, |
| 32 | + "rules": { |
| 33 | + "func-names": ["error", "as-needed"], |
| 34 | + "no-shadow": "error", |
| 35 | + "prefer-const": 0, |
| 36 | + "@typescript-eslint/explicit-function-return-type": 0, |
| 37 | + "@typescript-eslint/no-use-before-define": 0, |
| 38 | + "@typescript-eslint/camelcase": 0, |
| 39 | + "@typescript-eslint/no-var-requires": 0, |
| 40 | + "@typescript-eslint/no-explicit-any": 0, |
| 41 | + "react-hooks/rules-of-hooks": "error", |
| 42 | + "react-hooks/exhaustive-deps": "warn" |
| 43 | + } |
41 | 44 | } |
0 commit comments