-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
59 lines (58 loc) · 1.61 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
'use strict';
module.exports = {
env: {
es6: true,
node: true
},
plugins: ['prettier'],
extends: ['eslint:recommended', 'prettier'],
rules: {
'prettier/prettier': [
'error',
{
trailingComma: 'none',
singleQuote: true
}
],
'linebreak-style': ['error', 'unix'],
eqeqeq: ['error', 'always'],
'guard-for-in': ['error'],
strict: ['error', 'global'],
'no-console': 'off',
'no-template-curly-in-string': ['error'],
'block-scoped-var': ['error'],
complexity: ['warn', 10],
'no-else-return': 'error',
'no-floating-decimal': 'error',
'no-implicit-coercion': 'error',
'no-implicit-globals': 'error',
'no-implied-eval': 'error',
'no-lone-blocks': 'error',
'no-loop-func': 'error',
'no-multi-str': 'error',
'no-new-wrappers': 'error',
'no-new': 'error',
'no-return-assign': 'error',
'no-throw-literal': 'error',
'no-unmodified-loop-condition': 'error',
'no-useless-return': 'error',
radix: ['error', 'always'],
yoda: 'error',
'callback-return': 'error',
'global-require': 'error',
'func-name-matching': ['error', 'always'],
'func-style': ['error', 'expression'],
'lines-around-directive': ['error'],
'newline-before-return': 'error',
'no-lonely-if': 'error',
'operator-assignment': ['error', 'never'],
'no-useless-computed-key': 'error',
'no-var': 'error',
'prefer-const': 'error',
'prefer-template': 'error',
'no-warning-comments': 'error',
'require-jsdoc': 'warn',
'valid-jsdoc': 'warn',
'prefer-promise-reject-errors': 'error'
}
};