-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
38 lines (38 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
commonjs: true,
es6: true
},
globals: {
__DEV__: 'readonly'
},
plugins: ['prettier', 'builtin-compat'],
extends: ['airbnb', 'airbnb/hooks', 'prettier', 'prettier/react'],
rules: {
'prettier/prettier': 'error',
'builtin-compat/no-incompatible-builtins': 'error',
'react/jsx-filename-extension': 'off',
'react/jsx-props-no-spreading': 'off',
'react/prop-types': 'off',
'no-return-assign': ['error', 'except-parens'],
'no-shadow': 'off',
'no-param-reassign': 'off',
'no-use-before-define': ['error', {functions: false}],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
settings: {
'builtin-compat-ignore': [
// App which dependence this lib should pollyfill these methods:
'entries',
'assign',
'startsWith'
]
},
parserOptions: {
parser: 'babel-eslint'
}
};