-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy path.eslintrc.js
31 lines (31 loc) · 1.01 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
module.exports = {
root: true,
extends: 'airbnb',
plugins: ["output-todo-comments"],
parser: 'babel-eslint',
rules: {
indent: ['error', 4, { 'SwitchCase': 1 }],
'no-var': 'error',
'prefer-rest-params': 0, // arguments work faster
// TODO: no-param-reassign rule definitely needs to be turned on
'no-param-reassign': 0, // hard to follow
'no-underscore-dangle': 0, // for some hacks and array methods underscore prefix/suffix is required
'no-use-before-define': 0, // impossible to follow
'global-require': 0, // allow to fix circular refs
'new-cap': ['error', {"capIsNewExceptions": ['Class']}],
'comma-dangle': ["error", "never"], // personal preference
'output-todo-comments/output-todo-comments': [
'warn', {
terms: ['todo'],
location: 'start',
}
]
},
env: {
jasmine: true
},
globals: {
nofn: true,
window: true
}
};