-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.18 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
44
45
46
47
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
},
globals: {
_fmOpt: true,
ActiveXObject: true,
safari: true,
// jest global var
test: true,
expect: true
},
extends: ['airbnb-base'],
// add your custom rules here
rules: {
'no-unused-expressions': [0],
'no-bitwise': [0],
'no-param-reassign': [0],
'no-restricted-syntax': [0],
'prefer-rest-params': [0],
'no-empty': [0],
'no-caller': [0],
'no-restricted-properties': [0],
'class-methods-use-this': [0],
'no-underscore-dangle': [0],
'no-plusplus': [0],
'import/extensions': ['error', 'always', {
js: 'never',
}],
// disallow reassignment of function parameters
// disallow parameter object manipulation except for specific exclusions
'no-param-reassign': ['error', {
props: false
}],
'semi': ['error', 'never'],
// allow optionalDependencies
'import/no-extraneous-dependencies': ['error', {
optionalDependencies: ['test/unit/index.js']
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
}