forked from CyanSalt/todu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
61 lines (61 loc) · 1.79 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
module.exports = {
extends: 'eslint:all',
plugins: ['html'],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
env: {
es6: true,
node: true,
browser: true,
},
rules: {
'array-element-newline': 0,
'arrow-body-style': 0,
'arrow-parens': [2, 'as-needed'],
'capitalized-comments': 0,
'comma-dangle': [2, 'only-multiline'],
'curly': [2, 'multi-line', 'consistent'],
'dot-location': [2, 'property'],
'func-names': 0,
'func-style': [2, 'declaration', { allowArrowFunctions: true }],
'id-length': 0,
'indent': [2, 2, { SwitchCase: 1 }],
'max-len': [2, { ignoreUrls: true }],
'max-statements': 0,
'multiline-comment-style': 0,
'multiline-ternary': 0,
'newline-per-chained-call': 0,
'no-console': 0,
'no-empty': [2, { allowEmptyCatch: true }],
'no-empty-function': [2, { allow: ['arrowFunctions'] }],
'no-extra-parens': [2, 'all', { nestedBinaryExpressions: false }],
'no-magic-numbers': 0,
'no-negated-condition': 0,
'no-new': 0,
'no-param-reassign': 0,
'no-plusplus': [2, { allowForLoopAfterthoughts: true }],
'no-process-env': 0,
'no-sync': 0,
'no-ternary': 0,
'no-unused-vars': [2, { args: 'none' }],
'no-unused-expressions': [2, { allowShortCircuit: true }],
'no-use-before-define': [2, 'nofunc'],
'no-warning-comments': 0,
'object-curly-newline': [2, { consistent: true }],
'object-property-newline': 0,
'one-var': [2, 'never'],
'operator-linebreak': [2, 'after'],
'padded-blocks': 0,
'prefer-destructuring': 0,
'quote-props': 0,
'quotes': [2, 'single'],
'require-jsdoc': 0,
'semi': [2, 'never'],
'sort-imports': 0,
'sort-keys': 0,
'space-before-function-paren': [2, { named: 'never' }],
'strict': 0,
}
}