-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc.js
60 lines (60 loc) · 1.8 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
48
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = {
"extends": ["eslint:recommended"],
"parserOptions": { "ecmaVersion": 2017 },
"env": { "es6": true },
"globals": {
"chrome": false,
"console": false,
"STANDARD_GATT_SERVICES": true,
"STANDARD_GATT_CHARACTERISTICS": true,
},
"rules": {
"indent": ["error", 4],
'array-bracket-spacing': [2, 'never'],
'block-spacing': [2, 'never'],
'brace-style': 2,
'camelcase': [2, { properties: 'never' }],
'comma-dangle': [2, 'always-multiline'],
'comma-spacing': 2,
'comma-style': 2,
'computed-property-spacing': 2,
'consistent-this': 2,
'eol-last': 2,
'func-call-spacing': 2,
'key-spacing': 2,
'keyword-spacing': 2,
'max-depth': [2, 6],
'max-len': [2, {
'code': 120,
'ignoreUrls': true,
'ignoreTemplateLiterals': true,
}],
'max-nested-callbacks': [2, 4],
'max-params': [2, 10],
'new-cap': 2,
'no-array-constructor': 2,
'no-multiple-empty-lines': [2, { max: 2 }],
'no-new-object': 2,
'no-tabs': 2,
'no-trailing-spaces': 2,
'object-curly-spacing': [2, 'always'],
'one-var': [2, {
var: 'never',
let: 'never',
const: 'never',
}],
'padded-blocks': [2, 'never'],
'quote-props': [2, 'consistent'],
'quotes': [2, 'single', { allowTemplateLiterals: true }],
'semi': 2,
'semi-spacing': 2,
'space-before-blocks': 2,
'space-before-function-paren': [2, {
asyncArrow: 'always',
anonymous: 'always',
named: 'never',
}],
'spaced-comment': [2, 'always'],
'switch-colon-spacing': 2,
}
};