-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.js
109 lines (105 loc) · 2.85 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
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
'use strict';
const WARN = 1;
const ERROR = 2;
module.exports = {
root: true,
extends: [
'eslint:recommended'
],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
impliedStrict: true
}
},
env: {
browser: true,
node: true
},
rules: {
'no-unsafe-optional-chaining': ERROR,
'require-atomic-updates': ERROR,
'array-callback-return': ERROR,
'block-scoped-var': ERROR,
'class-methods-use-this': ERROR,
curly: ERROR,
'default-case-last': ERROR,
'default-param-last': ERROR,
'dot-location': [
ERROR,
'object'
],
'dot-notation': ERROR,
'eqeqeq': [
ERROR,
'smart'
],
'grouped-accessor-pairs': ERROR,
'guard-for-in': ERROR,
'no-caller': ERROR,
'no-constructor-return': ERROR,
'no-div-regex': ERROR,
'no-eval': ERROR,
'no-extend-native': ERROR,
'no-extra-bind': ERROR,
'no-extra-label': ERROR,
'no-implied-eval': ERROR,
'no-invalid-this': ERROR,
'no-iterator': ERROR,
'no-labels': ERROR,
'no-lone-blocks': ERROR,
'no-loop-func': ERROR,
'no-multi-spaces': ERROR,
'no-new': ERROR,
'no-new-func': ERROR,
'no-new-wrappers': ERROR,
'no-octal-escape': ERROR,
'no-proto': ERROR,
'no-return-assign': ERROR,
'no-return-await': ERROR,
'no-script-url': ERROR,
'no-unmodified-loop-condition': ERROR,
'no-unused-expressions': ERROR,
'no-useless-call': ERROR,
'no-void': ERROR,
'radix': ERROR,
'require-await': ERROR,
'vars-on-top': ERROR,
'wrap-iife': ERROR,
'no-label-var': ERROR,
'no-shadow': ERROR,
'no-use-before-define': [
ERROR,
'nofunc'
],
'camelcase': ERROR,
'comma-spacing': ERROR,
'consistent-this': ERROR,
'eol-last': ERROR,
'func-call-spacing': ERROR,
'linebreak-style': ERROR,
'max-len': WARN,
'new-parens': ERROR,
'no-array-constructor': ERROR,
'no-multi-assign': ERROR,
'no-multiple-empty-lines': ERROR,
'no-tabs': ERROR,
'no-trailing-spaces': ERROR,
'no-whitespace-before-property': ERROR,
'semi': ERROR,
'generator-star-spacing': [
ERROR,
'after'
],
'no-confusing-arrow': ERROR,
'no-duplicate-imports': ERROR,
'no-useless-computed-key': ERROR,
'no-useless-rename': ERROR,
'no-var': ERROR,
'prefer-arrow-callback': ERROR,
'prefer-const': ERROR,
'prefer-rest-params': ERROR
}
};