Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.eslintrc.json - github.com/thsmi/sieve.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 54995b45410e459e7823393b9015aa805f1bb7e3 (plain)
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
{
    "plugins": [
        "jsdoc"
    ],
    "extends": [
        // "plugin:unicorn/recommended",
        "eslint:recommended"
    ],
    "env": {
        "browser": true,
        "commonjs": true,
        "es6": true,
        "node": true
    },
    "parserOptions": {
        "ecmaVersion": 11,
        "ecmaFeatures": {
            "jsx": false
        },
        "sourceType": "module"
    },
    "rules": {
        "array-callback-return": "error",
        "func-call-spacing": [
            "error",
            "never"
        ],
        "comma-spacing": [
            "error",
            {
                "before": false,
                "after": true
            }
        ],
        "space-infix-ops": "error",
        "keyword-spacing": [
            "error",
            {
                "before": true
            }
        ],
        "indent": [
            "error",
            2,
            {
                "SwitchCase": 1
            }
        ],
        "yoda": "error",
        "wrap-iife": [
            "error",
            "inside"
        ],
        "template-curly-spacing": "error",
        "spaced-comment": [
            "error",
            "always"
        ],
        "prefer-const" :"warn",
        "no-octal":"error",
        "no-octal-escape": "error",
        "no-new-wrappers": "error",
        "no-whitespace-before-property": "error",
        "no-useless-rename": "error",
        "no-useless-computed-key": "error",
        "no-trailing-spaces": "error",
        "strict": ["warn", "function"],
        "no-shadow-restricted-names": "error",
        "no-new-object": "error",
        "no-new-func": "error",
        "no-multi-spaces": "error",
        "no-multi-str": "error",
        "no-new": "error",
        "no-loop-func" : "warn",
        "no-lone-blocks": "error",
        "new-parens": "error",
        "eol-last": [
            "error",
            "always"
        ],
        "dot-location": [
            "error",
            "property"
        ],
        "comma-style": [
            "error",
            "last"
        ],
        "camelcase": "error",
        "comma-dangle": [
            "error",
            "never"
        ],
        "one-var": [
            "error",
            "never"
        ],
        "consistent-this": [
            "error",
            "that"
        ],
        "no-constructor-return" : "error",
        "max-depth": "error",
        "eqeqeq": "error",
        "no-class-assign" : "warn",
        "no-sequences": "error",
        "no-labels": "error",
        "no-label-var": "error",
        "consistent-return": "error",
        "no-use-before-define": "error",
        "no-else-return": "error",
        "no-empty-pattern" : "warn",
        "no-const-assign": "error",
        "no-this-before-super": "warn",
        "no-eq-null" : "warn",
        "no-dupe-class-members" :"error",
        "no-undef": "error",
        "no-unreachable": "error",
        "no-unused-vars": [
            "warn",
            { "varsIgnorePattern": "EXPORTED_SYMBOLS" }
        ],
        "constructor-super": "error",
        "valid-typeof": "warn",
        "no-unreachable-loop": "error",
        "no-promise-executor-return": "error",
        "no-alert": "warn",
        "no-magic-numbers": ["warn", { "ignore": [0], "detectObjects": true }],
        "no-throw-literal": "error",
        "no-var": "error",
        "no-confusing-arrow": "error",
        "no-console": ["warn", { "allow": ["warn", "error"] }],
        "no-caller": "error",
        "no-eval": "error",
        "no-extra-label" :"error",
        "no-floating-decimal":"error",
        "no-extend-native": "error",
        "no-implied-eval": "error",
        "no-global-assign": "warn",
        "no-implicit-globals" :"warn",
        "no-iterator": "error",
        "no-proto": "error",
        "no-redeclare" : "error",
        "no-return-assign": "error",
        "no-self-compare": "error",
        "no-self-assign" : "error",
        "no-script-url": "error",
        "no-shadow":"warn",
        "no-useless-catch":"warn",
        "no-unused-labels":"error",
        "no-unmodified-loop-condition": "error",
        "no-useless-concat": "error",
        "no-useless-escape":"error",
        "no-useless-call": "error",
        "no-void": "error",
        "no-with": "error",
        "prefer-promise-reject-errors": "error",
        "prefer-spread": "error",
        "radix": "error",
        "no-new-require": "error",
        "linebreak-style": [
            "error",
            "unix"
        ],
        "rest-spread-spacing": ["error", "never"],
        "no-inline-comments": "error",
        "no-multi-assign": "error",
        "no-tabs": "error",
        "no-useless-constructor": "error",
        "require-atomic-updates": "warn",
        "semi": [
            "error",
            "always"
        ],
        "no-warning-comments" : "warn",
        "arrow-body-style": [ "error", "always" ],
        "arrow-parens": ["error", "always" ],
        "arrow-spacing": "error",

        "jsdoc/require-jsdoc": ["error", {
            "exemptEmptyFunctions":false,
            "require": {
                "ClassDeclaration" : true,
                "ClassExpression" : true,
                "FunctionDeclaration":true,
                "MethodDefinition":true
            }
         }],
        "jsdoc/newline-after-description": 0,
        "jsdoc/valid-types": 1,
        "jsdoc/no-undefined-types": 0,
        "jsdoc/require-description-complete-sentence": 0,

        "jsdoc/check-param-names": 1,
        "jsdoc/check-tag-names": 1,
        "jsdoc/check-types": 1,
        "jsdoc/require-param": 1,
        "jsdoc/require-param-description": 1,
        "jsdoc/require-param-name": 1,
        "jsdoc/require-param-type": 1,
        "jsdoc/require-returns-description": 1,
        "jsdoc/require-returns-type": 1,
        "jsdoc/require-returns-check": 1,
        "jsdoc/require-returns":  ["warn"],
        "jsdoc/require-description": 1,
        "jsdoc/require-example": 0,
        "jsdoc/require-hyphen-before-param-description": 0,

        //"jsdoc/check-examples": ["warn", {"paddedIndent": 4 }],
        "jsdoc/check-alignment": 1
        //,

        //"unicorn/prefer-type-error" : "off",
        //"unicorn/prefer-math-trunc" : "off",
        //"unicorn/prefer-ternary" : "off",
        //"unicorn/catch-error-name": "off",
        //"unicorn/prefer-string-slice" : "off",
        //"unicorn/explicit-length-check": "off",
        //"unicorn/no-fn-reference-in-iterator":"off",
        //"unicorn/no-unused-properties": "error",
        //"unicorn/no-useless-undefined" : "off",
        //"unicorn/prefer-optional-catch-binding" : "warn",
        //"unicorn/prefer-add-event-listener": "warn",
        //"unicorn/prefer-prototype-methods" : "warn",

        // Rules which make no sense
        //"unicorn/prevent-abbreviations" : "off",
        //"unicorn/empty-brace-spaces" : "off",
        //"unicorn/no-static-only-class" : "off",
        //"unicorn/no-lonely-if" : "off",
        //"unicorn/no-array-for-each" : "off",
        //"unicorn/filename-case": "off",
        //"unicorn/no-null": "off",
        //"unicorn/no-for-loop":"off",
        //"unicorn/consistent-destructuring" : "off",
        //"unicorn/numeric-separators-style" : "off",

        // Rules which ae broken or design flaws which cannot work.
        //"unicorn/prefer-array-some" : "off",
        //"unicorn/no-array-callback-reference" : "off",
        //"unicorn/prefer-dom-node-remove" : "off",
        //"unicorn/consistent-function-scoping" : "off",
        //"unicorn/prefer-spread" : "off",
        //"unicorn/better-regex" : "off",
        //"unicorn/prefer-module" : "off",

        // Currently off requires a newer node version
        //"unicorn/prefer-node-protocol" : "off",
        //"unicorn/prefer-array-flat" : "off"

   }
}