forked from kf8a/linters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (41 loc) · 885 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
39
40
41
/*eslint-env node*/
module.exports = {
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true
},
'rules': {
'camelcase': 2,
'comma-dangle': [2, 'never'],
'comma-style': [2, 'last'],
'eqeqeq': 2,
'indent': [2, 2, { 'VariableDeclarator': 2 }],
'no-eq-null': 2,
'no-extra-parens': 2,
'no-extra-semi': 2,
'no-lonely-if': 2,
'no-multi-spaces': 0,
'no-nested-ternary': 2,
'no-param-reassign': 2,
'no-self-compare': 2,
'no-shadow': 2,
'no-throw-literal': 2,
'no-undef': 2,
'no-underscore-dangle': 0,
'no-void': 2,
'quotes': 'off',
'semi': [2, 'always']
},
'globals': {
'R' : 'writable',
'$' : 'readonly',
'gon': 'readonly',
'NProgress': 'readonly',
'$window': 'readonly',
'$document': 'readonly',
'$html': 'readonly'
}
};