forked from mda590/homebridge-wyze-connected-home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
63 lines (63 loc) · 2.05 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
61
62
63
module.exports = {
'root': true,
'env': {
'node': true,
},
'extends': [
'eslint:recommended',
],
'rules': {
'no-unused-vars': [
'error',
{
'vars': 'all',
'args': 'none',
'ignoreRestSiblings': false,
},
],
'no-empty': 'off',
'indent': ['error', 2, { 'SwitchCase': 1 }],
'comma-dangle': ['error', 'always-multiline'],
'prefer-template': 'error',
'template-curly-spacing': 'error',
'template-tag-spacing': ['error', 'never'],
'arrow-body-style': ['error', 'as-needed', { requireReturnForObjectLiteral: false }],
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
'arrow-spacing': ['error', { before: true, after: true }],
'no-var': 'error',
'quotes': ['error', 'single', { avoidEscape: true }],
'no-multi-spaces': 'error',
'array-bracket-spacing': ['error', 'never'],
'block-spacing': ['error', 'always'],
'comma-spacing': ['error', { before: false, after: true }],
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
'keyword-spacing': 'error',
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: false }],
'lines-around-directive': 'error',
'no-lonely-if': 'error',
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0 }],
'no-spaced-func': 'error',
'no-whitespace-before-property': 'error',
'object-curly-spacing': ['error', 'always'],
'object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
'semi': ['error', 'always'],
'semi-spacing': ['error', { before: false, after: true }],
'semi-style': ['error', 'last'],
'space-before-blocks': 'error',
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}],
'space-in-parens': ['error', 'never'],
'space-infix-ops': 'error',
'switch-colon-spacing': ['error', { after: true, before: false }],
},
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"es6": true,
'node': true,
}
}