forked from MastersAcademy/js-course-2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (36 loc) · 986 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
33
34
35
36
37
38
module.exports = {
extends: 'airbnb-base',
env: {
browser: true,
es6: true,
node: true,
mocha: true,
jasmine: true,
jest: true
},
rules: {
// enable additional rules
indent: [
'error',
4,
{
SwitchCase: 1
}
],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-unused-vars': ['error', { vars: 'local' }],
'no-plusplus': 'off',
// override default options for rules from base configurations
'no-cond-assign': ['error', 'always'],
eqeqeq: ['warn', '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-unneeded-ternary': 'error'
}
};