-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy path.eslintrc.js
32 lines (32 loc) · 1008 Bytes
/
.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
module.exports = {
'extends': 'eslint-config-airbnb',
'env': {
'browser': true,
},
'plugins': ['html'],
'rules': {
'no-param-reassign': ['error', {
props: false
}],
'dot-notation': 0,
'no-plusplus': ['error', {
'allowForLoopAfterthoughts': true
}],
'max-len': ['error', 200, 2, {
'ignoreUrls': true,
'ignoreComments': false,
'ignoreRegExpLiterals': true,
'ignoreStrings': true,
'ignoreTemplateLiterals': true
}],
'one-var': 0,
'one-var-declaration-per-line': 0,
'no-nested-ternary': 0,
'camelcase': 0, // We have tons of camelcase identifiers, because the spec calls for it
'func-names': 0, // not every anonymous function should be an arrow func.
'no-mixed-operators': 0, // many 5th graders know PEMDAS.
'no-console': 0, // logging is healthy. logging is good.
'no-cond-assign': [2, 'except-parens'],
'import/prefer-default-export': 0, // no, sometimes I want to export by name.
}
};