-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
158 lines (150 loc) · 4.67 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/* leny/emotion-meyer-reset
*
* /.eslintrc.js - ESLint configuration
*
* coded by leny@flatLand!
* started at 28/02/2019
*/
/* eslint-disable */
"use strict";
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
"env": {
"node": true,
"es6": true,
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParameters": true,
"legacyDecorators": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"regexUFlag": true,
"regexYFlag": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true,
}
},
"plugins": [
"prettier",
],
"rules": {
"prettier/prettier": [ ERROR, {
"singleQuote": false,
"tabWidth": 4,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": true,
} ],
"accessor-pairs": ERROR,
"block-scoped-var": ERROR,
"consistent-this": [ ERROR, "self" ],
"constructor-super": ERROR,
"curly": ERROR,
"dot-notation": ERROR,
"eqeqeq": [ ERROR, "smart" ],
"func-style": [ ERROR, "expression" ],
"global-require": ERROR,
"handle-callback-err": WARNING,
"new-cap": ERROR,
"newline-after-var": [ ERROR, "always" ],
"no-alert": WARNING,
"no-array-constructor": ERROR,
"no-bitwise": ERROR,
"no-caller": ERROR,
"no-catch-shadow": ERROR,
"no-class-assign": ERROR,
"no-confusing-arrow": WARNING,
"no-const-assign": ERROR,
"no-constant-condition": ERROR,
"no-continue": ERROR,
"no-control-regex": ERROR,
"no-debugger": WARNING,
"no-delete-var": ERROR,
"no-div-regex": WARNING,
"no-dupe-class-members": ERROR,
"no-dupe-keys": ERROR,
"no-duplicate-case": ERROR,
"no-else-return": ERROR,
"no-empty": ERROR,
"no-empty-character-class": ERROR,
"no-eval": ERROR,
"no-extend-native": ERROR,
"no-extra-bind": ERROR,
"no-extra-boolean-cast": ERROR,
"no-fallthrough": ERROR,
"no-func-assign": ERROR,
"no-implied-eval": ERROR,
"no-inner-declarations": ERROR,
"no-invalid-regexp": ERROR,
"no-irregular-whitespace": ERROR,
"no-iterator": ERROR,
"no-labels": ERROR,
"no-lone-blocks": ERROR,
"no-lonely-if": ERROR,
"no-loop-func": ERROR,
"no-multi-str": ERROR,
"no-native-reassign": ERROR,
"no-negated-in-lhs": ERROR,
"no-nested-ternary": ERROR,
"no-new": ERROR,
"no-new-func": ERROR,
"no-new-object": ERROR,
"no-new-require": ERROR,
"no-new-wrappers": ERROR,
"no-octal": ERROR,
"no-octal-escape": ERROR,
"no-param-reassign": ERROR,
"no-proto": ERROR,
"no-redeclare": ERROR,
"no-return-assign": ERROR,
"no-self-compare": ERROR,
"no-shadow": ERROR,
"no-shadow-restricted-names": ERROR,
"no-this-before-super": ERROR,
"no-throw-literal": ERROR,
"no-undef-init": ERROR,
"no-unneeded-ternary": ERROR,
"no-unreachable": ERROR,
"no-unused-expressions": [ ERROR, { "allowShortCircuit": true, "allowTernary": true } ],
"no-unused-vars": ERROR,
"no-use-before-define": ERROR,
"no-useless-call": ERROR,
"no-useless-concat": ERROR,
"no-var": ERROR,
"no-void": ERROR,
"no-warning-comments": OFF,
"no-with": ERROR,
"one-var": [ ERROR, { "var": "always", "let": "always", "const": "never" } ],
"prefer-arrow-callback": WARNING,
"prefer-spread": WARNING,
"prefer-template": WARNING,
"radix": [ ERROR, "as-needed" ],
"require-yield": ERROR,
"spaced-comment": [ ERROR, "always" ],
"strict": [ ERROR, "function" ],
"use-isnan": ERROR,
"valid-typeof": ERROR,
"vars-on-top": ERROR,
"yoda": ERROR,
}
}