-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy path.eslintrc.js
37 lines (35 loc) · 1 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
module.exports = {
extends: 'eslint:recommended',
env: {
browser: true,
amd: true,
es6: true
},
rules: {
// enable additional rules
indent: [
'error',
4,
{
SwitchCase: 1
}
],
'linebreak-style': ['error', 'unix'],
// quotes: ['error', 'single'],
// semi: ['error', 'always'],
'no-undef': 'off',
'no-unused-vars': ['error', { vars: 'local' }],
// override default options for rules from base configurations
// "comma-dangle": ["error", "always"],
'no-cond-assign': ['error', 'always'],
// eqeqeq: ['error', 'smart'],
// disable rules from base configurations
"no-console": "off",
'block-scoped-var': 'error',
'guard-for-in': 'error',
'no-loop-func': 'error',
'no-self-compare': 'error',
// 'no-use-before-define': 'error',
'no-unneeded-ternary': 'error'
}
};