-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
111 lines (109 loc) · 3.73 KB
/
.eslintrc
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
env: {
node: true,
mocha: true,
es6: true
},
parserOptions: {
ecmaVersion: 6
},
extends: "eslint:recommended",
rules: {
curly: 'error',
'default-case': 'error',
'dot-notation': ['error', { allowPattern: '^[a-z]+(_[a-z]+)+$' }],
eqeqeq: 'error',
'guard-for-in': 'error',
'no-alert': 'error',
'no-caller': 'error',
'no-console': 'off',
'no-div-regex': 'error',
'no-else-return': 'error',
'no-eq-null': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-floating-decimal': 'error',
'no-global-assign': 'error',
'no-implicit-globals': 'error',
'no-implied-eval': 'error',
'no-invalid-this': 'error',
'no-iterator': 'error',
'no-labels': 'error',
'no-lone-blocks': 'error',
'no-loop-func': 'error',
'no-template-curly-in-string': 'off',
'no-unsafe-negation': 'error',
'no-magic-numbers': ['warn', { ignore: [-1, 0, 1, 200, 404, 500],
ignoreArrayIndexes: true }],
'no-multi-spaces': 'error',
'no-multi-str': 'error',
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-new': 'warn',
'no-proto': 'error',
'no-redeclare': 'error',
'no-return-assign': 'error',
'no-script-url': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
'no-sequences': 'error',
'no-unused-expressions': 'error',
'no-useless-concat': 'error',
'no-useless-escape': 'error',
'no-with': 'error',
radix: 'error',
'wrap-iife': 'error',
yoda: ['error', 'never'],
'no-catch-shadow': 'error',
'no-shadow': 'error',
'no-shadow-restricted-names': 'error',
'no-use-before-define': 'error',
'array-bracket-spacing': 'error',
'brace-style': 'error',
camelcase: 'error',
'comma-dangle': 'error',
'comma-spacing': 'error',
'comma-style': ['error', 'last'],
'computed-property-spacing': 'error',
'consistent-this': ['error', 'that'],
'eol-last': 'error',
'func-call-spacing': 'error',
indent: ['error', 4, { SwitchCase: 1 }],
'key-spacing': ['error', { afterColon: true }],
'keyword-spacing': ['error', { after: true }],
'max-len': ['error', 120],
'new-cap': 'error',
'newline-before-return': 'error',
'no-array-constructor': 'error',
'no-bitwise': 'error',
'no-lonely-if': 'error',
'no-multiple-empty-lines': 'error',
'no-negated-condition': 'error',
'no-new-object': 'error',
'no-tabs': 'error',
'no-trailing-spaces': 'error',
'no-underscore-dangle': ['error', { allowAfterThis: true }],
'no-unneeded-ternary': 'error',
'no-whitespace-before-property': 'error',
'object-curly-spacing': ['error', 'always'],
'object-property-newline': 'error',
'one-var-declaration-per-line': ['error', 'always'],
'one-var': ['error', 'never'],
'operator-linebreak': ['error', 'after'],
'padded-blocks': ['error', 'never'],
'quote-props': ['error', 'as-needed'],
quotes: ['error', 'single', { avoidEscape: true }],
'semi-spacing': ['error', { before: false,
after: true }],
semi: ['error', 'always'],
'space-before-blocks': ['error', 'always'],
'space-before-function-paren': ['error', { anonymous: 'always',
named: 'never' }],
'space-in-parens': ['error', 'never'],
'space-infix-ops': 'error',
'space-unary-ops': 'off',
'spaced-comment': ['error', 'always'],
'unicode-bom': 'error'
}
}