-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.11 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
module.exports = {
root: true,
parser: '@babel/eslint-parser',
extends: 'airbnb',
globals: {
'MutationObserver': 'readonly'
},
env: {
browser: true
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'indent': ['error', 4],
'no-param-reassign': ['error', {
props: false
}],
'no-unused-vars': ['error', {
vars: 'all',
args: 'none',
ignoreRestSiblings: false
}],
'space-before-function-paren': [
'error',
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}
],
'comma-dangle': ['error', 'never'],
'quote-props': ['error', 'consistent'],
'max-len': 'off',
'no-multiple-empty-lines': ['error', { 'max': 2 }],
'arrow-body-style': ['error', 'always'],
'import/prefer-default-export': 'off',
'no-use-before-define': 'off'
}
};