-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy path.eslintrc.js
executable file
·43 lines (43 loc) · 1.17 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
41
42
43
module.exports = {
extends: ['airbnb', 'prettier'],
env: {
browser: true,
node: true,
es6: true,
jquery: true,
},
parser: 'babel-eslint',
plugins: ['react', 'babel'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warning' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warning' : 'off',
'prefer-destructuring': 0,
'prefer-promise-reject-errors': 1,
'no-else-return': 0,
'import/no-extraneous-dependencies': 0,
'import/no-unresolved': [2, { ignore: ['^@/'] }],
'react/jsx-props-no-spreading': 0,
'react/jsx-one-expression-per-line': 0,
'react/prop-types': 0,
'react/forbid-prop-types': 0,
'react/jsx-indent': 0,
'react/jsx-wrap-multilines': [
'error',
{
declaration: false,
assignment: false,
},
],
'react/jsx-filename-extension': [
1,
{
extensions: ['.js', '.jsx'],
},
],
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/anchor-has-content': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/anchor-is-valid': 0,
// 'comma-dangle': ['error', 'always-multiline'],
},
};