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