|
1 | 1 | { |
2 | | - "parser": "babel-eslint", |
| 2 | + "parser": "@babel/eslint-parser", |
3 | 3 | "parserOptions": { |
4 | | - "sourceType": "module" |
| 4 | + "sourceType": "module", |
| 5 | + "requireConfigFile": false, |
| 6 | + "babelOptions": { |
| 7 | + "presets": ["@babel/preset-react", "@babel/preset-env"] |
| 8 | + } |
5 | 9 | }, |
6 | 10 | "extends": ["airbnb", "plugin:prettier/recommended"], |
7 | 11 | "rules": { |
|
16 | 20 | "guard-for-in": 0, |
17 | 21 | "no-underscore-dangle": 0, |
18 | 22 | "func-names": 0, |
| 23 | + "class-methods-use-this": 0, |
19 | 24 | "import/named": [1], |
20 | 25 | "import/order": 0, |
21 | 26 | "import/prefer-default-export": 0, |
|
34 | 39 | "react/jsx-max-props-per-line": 0, |
35 | 40 | "react/jsx-one-expression-per-line": 0, |
36 | 41 | "react/jsx-props-no-multi-spaces": 0, |
| 42 | + "react/jsx-props-no-spreading": 0, |
37 | 43 | "react/jsx-tag-spacing": 0, |
38 | 44 | "react/jsx-wrap-multilines": 0, |
| 45 | + "react/jsx-no-useless-fragment": 0, |
| 46 | + "react/no-unstable-nested-components": 0, |
| 47 | + "react/no-unused-class-component-methods": 0, |
| 48 | + "react/static-property-placement": 0, |
| 49 | + "react/state-in-constructor": 0, |
| 50 | + "react/function-component-definition": 0, |
| 51 | + "react/jsx-fragments": 0, |
39 | 52 | "jsx-a11y/img-has-alt": [0], |
40 | 53 | "jsx-a11y/alt-text": 0 |
41 | 54 | }, |
|
0 commit comments