-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
40 lines (40 loc) · 1.02 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'react',
],
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/sort-comp': [0, {}],
'max-classes-per-file': [0],
'react/static-property-placement': [0],
'react/forbid-prop-types': [0],
'react/jsx-props-no-spreading': [0],
'react/prop-types': [2, { ignore: ['match', 'history', 'location', 'children'] }],
'no-param-reassign': [0],
'object-curly-newline': [0],
'class-methods-use-this': [0],
'no-restricted-syntax': [0],
'no-nested-ternary': [0],
'react/jsx-one-expression-per-line': [0],
'react/prefer-stateless-function': [1],
'no-else-return': [0],
'import/prefer-default-export': [0],
'react/no-redundant-should-component-update': [0],
},
};