/
.eslintrc.js
46 lines (46 loc) · 994 Bytes
/
.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
41
42
43
44
45
46
module.exports = {
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
node: true,
es2020: true
},
extends: [
'airbnb-base',
'plugin:prettier/recommended',
'plugin:react/recommended',
'eslint:recommended'
],
plugins: ['react', 'import', 'prettier'],
rules: {
'import/prefer-default-export': 'off',
'class-methods-use-this': 'warn',
'consistent-return': 'warn',
'no-unused-vars': 'warn',
'no-console': 'off',
'no-continue': 'off',
'no-bitwise': 'off',
'no-underscore-dangle': 'off',
'no-param-reassign': ['error', { props: false }],
'no-restricted-syntax': [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement',
],
"no-use-before-define": "off",
"import/no-unresolved": "off",
"import/extensions": "off"
},
settings: {
"react": {
"version": "detect"
}
}
};