-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (45 loc) · 1.11 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
38
39
40
41
42
43
44
45
46
47
'use strict';
let optional = 1;
let required = 2;
module.exports = {
env: {
node: true,
browser: true,
es6: true
},
globals: {
ENV: true,
describe: true,
it: true,
jQuery: true,
google: true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
},
rules: {
semi: [required, 'always'],
curly: [required, 'all'],
quotes: [required, 'single'],
'object-curly-spacing': [required, 'never'],
'array-bracket-spacing': [required, 'never'],
'space-infix-ops': [required, {int32Hint: false}],
'no-var': required,
strict: required,
'no-undef': required,
'block-scoped-var': required,
'eol-last': required,
eqeqeq: [required, 'smart'],
'max-depth': [optional, 3],
// 'max-len': [optional, 80],
'max-statements': [optional, 15],
'new-cap': optional,
'no-extend-native': required,
'no-multiple-empty-lines': [required, {max: 1, maxBOF: 0}],
'block-spacing': [required, 'never'],
'keyword-spacing': required,
'key-spacing': [required, {afterColon: true}],
'space-unary-ops': required,
}
};