|
1 |
| -{ |
2 |
| - "parser": "babel-eslint", |
3 |
| - "extends": ["standard", "standard-react", "prettier", "eslint:recommended"], |
4 |
| - "env": { |
5 |
| - "es6": true, |
6 |
| - "jest": true |
7 |
| - }, |
8 |
| - "plugins": ["react", "prettier"], |
9 |
| - "parserOptions": { |
10 |
| - "sourceType": "module", |
11 |
| - "ecmaVersion": 2018, |
12 |
| - "ecmaFeatures": { |
13 |
| - "impliedStrict": true, |
14 |
| - "jsx": true, |
15 |
| - "arrowFunctions": true, |
16 |
| - "blockBindings": true, |
17 |
| - "defaultParams": true, |
18 |
| - "destructuring": true, |
19 |
| - "forOf": true, |
20 |
| - "generators": true, |
21 |
| - "objectLiteralComputedProperties": true, |
22 |
| - "objectLiteralShorthandMethods": true, |
23 |
| - "objectLiteralShorthandProperties": true, |
24 |
| - "experimentalObjectRestSpread": true, |
25 |
| - "restParams": true, |
26 |
| - "spread": true, |
27 |
| - "templateStrings": true, |
28 |
| - "modules": true, |
29 |
| - "classes": true |
30 |
| - } |
31 |
| - }, |
32 |
| - "rules": { |
33 |
| - "react/jsx-no-bind": "off", |
34 |
| - "space-before-function-paren": 0, |
35 |
| - "react/jsx-boolean-value": 0, |
36 |
| - "max-len": [2, { "code": 120, "ignoreComments": true }], |
37 |
| - "newline-per-chained-call": 0, |
38 |
| - "no-trailing-spaces": ["error"], |
39 |
| - "quotes": ["error", "single", { "avoidEscape": true }], |
40 |
| - "comma-dangle": ["error", "never"], |
41 |
| - "no-template-curly-in-string": "off", |
42 |
| - "semi": ["error", "always"], |
43 |
| - "object-curly-spacing": ["error", "always"], |
44 |
| - "quote-props": ["error", "consistent"], |
45 |
| - "no-var": ["error"] |
46 |
| - } |
47 |
| -} |
| 1 | +{ |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "settings": { |
| 4 | + "react": { |
| 5 | + "version": "detect" |
| 6 | + } |
| 7 | + }, |
| 8 | + "extends": [ |
| 9 | + // "standard", |
| 10 | + "eslint:recommended", |
| 11 | + "plugin:@typescript-eslint/recommended", |
| 12 | + "plugin:react/recommended" |
| 13 | + ], |
| 14 | + "env": { |
| 15 | + //error with "es2021": true |
| 16 | + "es6": true, |
| 17 | + "jest": true, |
| 18 | + "node": true, |
| 19 | + "browser": true |
| 20 | + }, |
| 21 | + "plugins": ["@typescript-eslint", "react", "react-hooks"], |
| 22 | + "parserOptions": { |
| 23 | + "ecmaVersion": 12, |
| 24 | + "sourceType": "module", |
| 25 | + "requireConfigFile": false, |
| 26 | + "ecmaFeatures": { |
| 27 | + "jsx": true |
| 28 | + } |
| 29 | + }, |
| 30 | + "rules": { |
| 31 | + "react/jsx-uses-react": "off", |
| 32 | + "react/react-in-jsx-scope": "off", |
| 33 | + "react/prop-types": "off", |
| 34 | + "react-hooks/rules-of-hooks": "error", |
| 35 | + "react-hooks/exhaustive-deps": "warn", |
| 36 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 37 | + "react/jsx-no-bind": [ |
| 38 | + "warn", |
| 39 | + { |
| 40 | + "ignoreRefs": true |
| 41 | + } |
| 42 | + ], |
| 43 | + "space-before-function-paren": 0, |
| 44 | + "react/jsx-boolean-value": 0, |
| 45 | + "max-len": [2, { "code": 120, "ignoreComments": true }], |
| 46 | + "newline-per-chained-call": 0, |
| 47 | + "no-trailing-spaces": ["error"], |
| 48 | + "quotes": ["error", "single", { "avoidEscape": true }], |
| 49 | + "comma-dangle": ["error", "never"], |
| 50 | + "no-template-curly-in-string": "off", |
| 51 | + "semi": ["error", "always"], |
| 52 | + "object-curly-spacing": ["error", "always"], |
| 53 | + "quote-props": ["error", "consistent"], |
| 54 | + "no-var": ["error"], |
| 55 | + "indent": "off" |
| 56 | + } |
| 57 | +} |
0 commit comments