forked from os-js/eslint-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
56 lines (56 loc) · 1.62 KB
/
index.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
module.exports = {
'env': {
'es6': true
},
'parserOptions': {
'ecmaVersion': 2018
},
'extends': 'eslint:recommended',
'rules': {
'no-multi-assign': ['error'],
'brace-style': ['error', '1tbs'],
'curly': ['error', 'all'],
'eqeqeq': ['error', 'always'],
'quotes': ['error', 'single'],
'linebreak-style': ['error', 'unix'],
'semi': ['error', 'always'],
'indent': ['error', 2],
'radix': 1,
'eol-last': ['error', 'always'],
'consistent-return': 1,
'space-in-parens': ['error', 'never'],
'space-before-function-paren': ['error', {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always'
}],
'space-before-blocks': ['error', 'always'],
'space-infix-ops': ['error', {'int32Hint': false}],
'space-unary-ops': ['error', {'words': true, 'nonwords': false}],
'spaced-comment': ['warn', 'always'],
'prefer-arrow-callback': 1,
'prefer-spread': 1,
'prefer-rest-params': 1,
'template-curly-spacing': ['warn', 'never'],
'no-multiple-empty-lines': ['error'],
'no-unused-vars': ['error', {'vars': 'all', 'args': 'none'}],
'no-useless-constructor': 1,
'no-var': 2,
'no-duplicate-imports': 2,
'no-console': 'off',
'no-extra-semi': 2,
'no-eval': 2,
'no-invalid-this': 1,
'no-new-func': 2,
'no-return-await': 1,
'no-self-compare': 2,
'no-with': 2,
'no-multi-assign': 1,
'no-new-object': 2,
'no-tabs': 1,
'no-trailing-spaces': 2,
'comma-spacing': ['error', {'before': false, 'after': true}],
'object-curly-spacing': ['error', 'never'],
'prefer-object-spread': 1
}
};