eser 2.1.9 → 3.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/defterdar.js +13 -0
  2. package/deno.json +6 -0
  3. package/deno.lock +52 -0
  4. package/hizli-api.js +78 -0
  5. package/main.js +5 -0
  6. package/mod.js +3 -0
  7. package/mod_test.js +5 -0
  8. package/package.json +12 -37
  9. package/.editorconfig +0 -14
  10. package/.gitattributes +0 -11
  11. package/.github/FUNDING.yml +0 -5
  12. package/LICENSE +0 -22
  13. package/README.md +0 -3794
  14. package/css-in-javascript/README.md +0 -432
  15. package/linters/.eslintrc +0 -6
  16. package/linters/.markdownlint.json +0 -154
  17. package/packages/eslint-config-eser/.editorconfig +0 -14
  18. package/packages/eslint-config-eser/.eslintrc +0 -3
  19. package/packages/eslint-config-eser/README.md +0 -19
  20. package/packages/eslint-config-eser/index.js +0 -20
  21. package/packages/eslint-config-eser/package.json +0 -49
  22. package/packages/eslint-config-eser/rules/best-practices.js +0 -381
  23. package/packages/eslint-config-eser/rules/errors.js +0 -146
  24. package/packages/eslint-config-eser/rules/es6.js +0 -203
  25. package/packages/eslint-config-eser/rules/imports.js +0 -291
  26. package/packages/eslint-config-eser/rules/node.js +0 -43
  27. package/packages/eslint-config-eser/rules/strict.js +0 -5
  28. package/packages/eslint-config-eser/rules/style.js +0 -597
  29. package/packages/eslint-config-eser/rules/variables.js +0 -53
  30. package/packages/eslint-config-eser-react/.editorconfig +0 -14
  31. package/packages/eslint-config-eser-react/.eslintrc +0 -3
  32. package/packages/eslint-config-eser-react/README.md +0 -19
  33. package/packages/eslint-config-eser-react/index.js +0 -11
  34. package/packages/eslint-config-eser-react/package.json +0 -59
  35. package/packages/eslint-config-eser-react/rules/react-a11y.js +0 -275
  36. package/packages/eslint-config-eser-react/rules/react-hooks.js +0 -21
  37. package/packages/eslint-config-eser-react/rules/react.js +0 -600
  38. package/react/README.md +0 -717
@@ -1,597 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- // enforce line breaks after opening and before closing array brackets
4
- // https://eslint.org/docs/rules/array-bracket-newline
5
- 'array-bracket-newline': [ 'warn', 'consistent' ], // object option alternative: { multiline: true, minItems: 3 }
6
-
7
- // enforce line breaks between array elements
8
- // https://eslint.org/docs/rules/array-element-newline
9
- 'array-element-newline': [ 'warn', 'consistent' ], // object option alternative: { multiline: true, minItems: 3 }
10
-
11
- // enforce spacing inside array brackets
12
- 'array-bracket-spacing': [ 'error', 'always' ],
13
-
14
- // enforce spacing inside single-line blocks
15
- // https://eslint.org/docs/rules/block-spacing
16
- 'block-spacing': [ 'error', 'always' ],
17
-
18
- // enforce one true brace style
19
- 'brace-style': [ 'error', 'stroustrup', { allowSingleLine: true } ],
20
-
21
- // require camel case names
22
- 'camelcase': [ 'error', { properties: 'always', ignoreDestructuring: false } ],
23
-
24
- // enforce or disallow capitalization of the first letter of a comment
25
- // https://eslint.org/docs/rules/capitalized-comments
26
- 'capitalized-comments': [
27
- 'off',
28
- 'never',
29
- {
30
- line: {
31
- ignorePattern: '.*',
32
- ignoreInlineComments: true,
33
- ignoreConsecutiveComments: true,
34
- },
35
- block: {
36
- ignorePattern: '.*',
37
- ignoreInlineComments: true,
38
- ignoreConsecutiveComments: true,
39
- },
40
- },
41
- ],
42
-
43
- // require trailing commas in multiline object literals
44
- 'comma-dangle': [
45
- 'error',
46
- {
47
- arrays: 'always-multiline',
48
- objects: 'always-multiline',
49
- imports: 'always-multiline',
50
- exports: 'always-multiline',
51
- functions: 'always-multiline',
52
- },
53
- ],
54
-
55
- // enforce spacing before and after comma
56
- 'comma-spacing': [ 'error', { before: false, after: true } ],
57
-
58
- // enforce one true comma style
59
- 'comma-style': [
60
- 'error',
61
- 'last',
62
- {
63
- exceptions: {
64
- ArrayExpression: false,
65
- ArrayPattern: false,
66
- ArrowFunctionExpression: false,
67
- CallExpression: false,
68
- FunctionDeclaration: false,
69
- FunctionExpression: false,
70
- ImportDeclaration: false,
71
- ObjectExpression: false,
72
- ObjectPattern: false,
73
- VariableDeclaration: false,
74
- NewExpression: false,
75
- },
76
- },
77
- ],
78
-
79
- // disallow padding inside computed properties
80
- 'computed-property-spacing': [ 'error', 'never' ],
81
-
82
- // enforces consistent naming when capturing the current execution context
83
- 'consistent-this': [ 'warn', 'self' ],
84
-
85
- // enforce newline at the end of file, with no multiple empty lines
86
- 'eol-last': [ 'error', 'always' ],
87
-
88
- // https://eslint.org/docs/rules/function-call-argument-newline
89
- 'function-call-argument-newline': [ 'warn', 'consistent' ],
90
-
91
- // enforce spacing between functions and their invocations
92
- // https://eslint.org/docs/rules/func-call-spacing
93
- 'func-call-spacing': [ 'error', 'never' ],
94
-
95
- // requires function names to match the name of the variable or property to which they are
96
- // assigned
97
- // https://eslint.org/docs/rules/func-name-matching
98
- 'func-name-matching': [
99
- 'off',
100
- 'always',
101
- {
102
- includeCommonJSModuleExports: false,
103
- considerPropertyDescriptor: true,
104
- },
105
- ],
106
-
107
- // require function expressions to have a name
108
- // https://eslint.org/docs/rules/func-names
109
- 'func-names': 'warn',
110
-
111
- // enforces use of function declarations or expressions
112
- // https://eslint.org/docs/rules/func-style
113
- 'func-style': [ 'warn', 'declaration', { allowArrowFunctions: true } ],
114
-
115
- // enforce consistent line breaks inside function parentheses
116
- // https://eslint.org/docs/rules/function-paren-newline
117
- 'function-paren-newline': [ 'error', 'consistent' ],
118
-
119
- // Blacklist certain identifiers to prevent them being used
120
- // https://eslint.org/docs/rules/id-blacklist
121
- 'id-blacklist': 'off',
122
-
123
- // this option enforces minimum and maximum identifier lengths
124
- // (variable names, property names etc.)
125
- 'id-length': 'off',
126
-
127
- // require identifiers to match the provided regular expression
128
- 'id-match': 'off',
129
-
130
- // Enforce the location of arrow function bodies with implicit returns
131
- // https://eslint.org/docs/rules/implicit-arrow-linebreak
132
- 'implicit-arrow-linebreak': [ 'error', 'beside' ],
133
-
134
- // this option sets a specific tab width for your code
135
- // https://eslint.org/docs/rules/indent
136
- 'indent': [
137
- 'error',
138
- 4,
139
- {
140
- SwitchCase: 1,
141
- VariableDeclarator: 1,
142
- outerIIFEBody: 1,
143
- // MemberExpression: null,
144
- FunctionDeclaration: {
145
- parameters: 1,
146
- body: 1,
147
- },
148
- FunctionExpression: {
149
- parameters: 1,
150
- body: 1,
151
- },
152
- CallExpression: {
153
- arguments: 1,
154
- },
155
- ArrayExpression: 1,
156
- ObjectExpression: 1,
157
- ImportDeclaration: 1,
158
- flatTernaryExpressions: false,
159
- // list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js
160
- ignoredNodes: [
161
- 'JSXElement',
162
- 'JSXElement > *',
163
- 'JSXAttribute',
164
- 'JSXIdentifier',
165
- 'JSXNamespacedName',
166
- 'JSXMemberExpression',
167
- 'JSXSpreadAttribute',
168
- 'JSXExpressionContainer',
169
- 'JSXOpeningElement',
170
- 'JSXClosingElement',
171
- 'JSXText',
172
- 'JSXEmptyExpression',
173
- 'JSXSpreadChild',
174
- ],
175
- ignoreComments: false,
176
- },
177
- ],
178
-
179
- // specify whether double or single quotes should be used in JSX attributes
180
- // https://eslint.org/docs/rules/jsx-quotes
181
- 'jsx-quotes': [ 'off', 'prefer-double' ],
182
-
183
- // enforces spacing between keys and values in object literal properties
184
- 'key-spacing': [ 'error', { beforeColon: false, afterColon: true, mode: 'strict' } ],
185
-
186
- // require a space before & after certain keywords
187
- 'keyword-spacing': [
188
- 'error',
189
- {
190
- before: true,
191
- after: true,
192
- overrides: {
193
- 'return': { after: true },
194
- 'throw': { after: true },
195
- 'case': { after: true },
196
- },
197
- },
198
- ],
199
-
200
- // enforce position of line comments
201
- // https://eslint.org/docs/rules/line-comment-position
202
- // TODO: enable?
203
- 'line-comment-position': [
204
- 'off',
205
- {
206
- position: 'above',
207
- ignorePattern: '',
208
- applyDefaultPatterns: true,
209
- },
210
- ],
211
-
212
- // disallow mixed 'LF' and 'CRLF' as linebreaks
213
- // https://eslint.org/docs/rules/linebreak-style
214
- 'linebreak-style': [ 'error', 'unix' ],
215
-
216
- // require or disallow an empty line between class members
217
- // https://eslint.org/docs/rules/lines-between-class-members
218
- 'lines-between-class-members': [ 'error', 'always', { exceptAfterSingleLine: false } ],
219
-
220
- // enforces empty lines around comments
221
- 'lines-around-comment': 'off',
222
-
223
- // require or disallow newlines around directives
224
- // https://eslint.org/docs/rules/lines-around-directive
225
- 'lines-around-directive': [ 'error', { before: 'always', after: 'always' } ],
226
-
227
- // specify the maximum depth that blocks can be nested
228
- 'max-depth': [ 'warn', 4 ],
229
-
230
- // specify the maximum length of a line in your program
231
- // https://eslint.org/docs/rules/max-len
232
- 'max-len': [
233
- 'error',
234
- 100,
235
- 2,
236
- {
237
- ignoreUrls: true,
238
- ignoreComments: false,
239
- ignoreRegExpLiterals: true,
240
- ignoreStrings: true,
241
- ignoreTemplateLiterals: true,
242
- },
243
- ],
244
-
245
- // specify the max number of lines in a file
246
- // https://eslint.org/docs/rules/max-lines
247
- 'max-lines': [
248
- 'warn',
249
- {
250
- max: 500,
251
- skipBlankLines: true,
252
- skipComments: true,
253
- },
254
- ],
255
-
256
- // enforce a maximum function length
257
- // https://eslint.org/docs/rules/max-lines-per-function
258
- 'max-lines-per-function': [
259
- 'off',
260
- {
261
- max: 50,
262
- skipBlankLines: true,
263
- skipComments: true,
264
- IIFEs: true,
265
- },
266
- ],
267
-
268
- // specify the maximum depth callbacks can be nested
269
- 'max-nested-callbacks': 'off',
270
-
271
- // limits the number of parameters that can be used in the function declaration.
272
- 'max-params': [ 'warn', 5 ],
273
-
274
- // specify the maximum number of statement allowed in a function
275
- 'max-statements': [ 'warn', 10 ],
276
-
277
- // restrict the number of statements per line
278
- // https://eslint.org/docs/rules/max-statements-per-line
279
- 'max-statements-per-line': [ 'off', { max: 1 } ],
280
-
281
- // enforce a particular style for multiline comments
282
- // https://eslint.org/docs/rules/multiline-comment-style
283
- 'multiline-comment-style': [ 'off', 'starred-block' ],
284
-
285
- // require multiline ternary
286
- // https://eslint.org/docs/rules/multiline-ternary
287
- // TODO: enable?
288
- 'multiline-ternary': [ 'off', 'never' ],
289
-
290
- // require a capital letter for constructors
291
- 'new-cap': [
292
- 'error',
293
- {
294
- newIsCap: true,
295
- newIsCapExceptions: [],
296
- capIsNew: false,
297
- capIsNewExceptions: [
298
- 'Immutable.Map',
299
- 'Immutable.Set',
300
- 'Immutable.List',
301
- ],
302
- },
303
- ],
304
-
305
- // disallow the omission of parentheses when invoking a constructor with no arguments
306
- // https://eslint.org/docs/rules/new-parens
307
- 'new-parens': 'error',
308
-
309
- // allow/disallow an empty newline after var statement
310
- 'newline-after-var': [ 'warn', 'always' ],
311
-
312
- // https://eslint.org/docs/rules/newline-before-return
313
- 'newline-before-return': 'warn',
314
-
315
- // enforces new line after each method call in the chain to make it
316
- // more readable and easy to maintain
317
- // https://eslint.org/docs/rules/newline-per-chained-call
318
- 'newline-per-chained-call': [ 'warn', { ignoreChainWithDepth: 4 } ],
319
-
320
- // disallow use of the Array constructor
321
- 'no-array-constructor': 'error',
322
-
323
- // disallow use of bitwise operators
324
- // https://eslint.org/docs/rules/no-bitwise
325
- 'no-bitwise': 'warn',
326
-
327
- // disallow use of the continue statement
328
- // https://eslint.org/docs/rules/no-continue
329
- 'no-continue': 'warn',
330
-
331
- // disallow comments inline after code
332
- 'no-inline-comments': 'off',
333
-
334
- // disallow if as the only statement in an else block
335
- // https://eslint.org/docs/rules/no-lonely-if
336
- 'no-lonely-if': 'error',
337
-
338
- // disallow un-paren'd mixes of different operators
339
- // https://eslint.org/docs/rules/no-mixed-operators
340
- 'no-mixed-operators': [
341
- 'error',
342
- {
343
- // the list of arthmetic groups disallows mixing `%` and `**`
344
- // with other arithmetic operators.
345
- groups: [
346
- [ '%', '**' ],
347
- [ '%', '+' ],
348
- [ '%', '-' ],
349
- [ '%', '*' ],
350
- [ '%', '/' ],
351
- [ '/', '*' ],
352
- [ '&', '|', '^', '~', '<<', '>>', '>>>' ],
353
- [ '==', '!=', '===', '!==', '>', '>=', '<', '<=' ],
354
- [ '&&', '||' ],
355
- [ 'in', 'instanceof' ],
356
- ],
357
- allowSamePrecedence: false,
358
- },
359
- ],
360
-
361
- // disallow mixed spaces and tabs for indentation
362
- 'no-mixed-spaces-and-tabs': 'error',
363
-
364
- // disallow use of chained assignment expressions
365
- // https://eslint.org/docs/rules/no-multi-assign
366
- 'no-multi-assign': [ 'error' ],
367
-
368
- // disallow multiple empty lines, only one newline at the end, and no new lines
369
- // at the beginning
370
- // https://eslint.org/docs/rules/no-multiple-empty-lines
371
- 'no-multiple-empty-lines': [ 'error', { max: 2, maxBOF: 1, maxEOF: 1 } ],
372
-
373
- // disallow negated conditions
374
- // https://eslint.org/docs/rules/no-negated-condition
375
- 'no-negated-condition': 'off',
376
-
377
- // disallow nested ternary expressions
378
- 'no-nested-ternary': 'error',
379
-
380
- // disallow use of the Object constructor
381
- 'no-new-object': 'error',
382
-
383
- // disallow use of unary operators, ++ and --
384
- // https://eslint.org/docs/rules/no-plusplus
385
- 'no-plusplus': 'error',
386
-
387
- // disallow certain syntax forms
388
- // https://eslint.org/docs/rules/no-restricted-syntax
389
- 'no-restricted-syntax': [
390
- 'error',
391
- {
392
- selector: 'ForInStatement',
393
- message: 'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
394
- },
395
- {
396
- selector: 'ForOfStatement',
397
- message: 'iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations.',
398
- },
399
- {
400
- selector: 'LabeledStatement',
401
- message: 'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.',
402
- },
403
- {
404
- selector: 'WithStatement',
405
- message: '`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
406
- },
407
- ],
408
-
409
- // disallow space between function identifier and application
410
- 'no-spaced-func': 'error',
411
-
412
- // disallow tab characters entirely
413
- 'no-tabs': 'error',
414
-
415
- // disallow the use of ternary operators
416
- 'no-ternary': 'off',
417
-
418
- // disallow trailing whitespace at the end of lines
419
- 'no-trailing-spaces': [
420
- 'error',
421
- {
422
- skipBlankLines: false,
423
- ignoreComments: false,
424
- },
425
- ],
426
-
427
- // disallow dangling underscores in identifiers
428
- // https://eslint.org/docs/rules/no-underscore-dangle
429
- 'no-underscore-dangle': [
430
- 'error',
431
- {
432
- allow: [],
433
- allowAfterThis: false,
434
- allowAfterSuper: false,
435
- enforceInMethodNames: true,
436
- },
437
- ],
438
-
439
- // disallow the use of Boolean literals in conditional expressions
440
- // also, prefer `a || b` over `a ? a : b`
441
- // https://eslint.org/docs/rules/no-unneeded-ternary
442
- 'no-unneeded-ternary': [ 'error', { defaultAssignment: false } ],
443
-
444
- // disallow whitespace before properties
445
- // https://eslint.org/docs/rules/no-whitespace-before-property
446
- 'no-whitespace-before-property': 'error',
447
-
448
- // enforce the location of single-line statements
449
- // https://eslint.org/docs/rules/nonblock-statement-body-position
450
- 'nonblock-statement-body-position': [ 'error', 'beside', { overrides: {} } ],
451
-
452
- // require padding inside curly braces
453
- 'object-curly-spacing': [ 'error', 'always' ],
454
-
455
- // enforce line breaks between braces
456
- // https://eslint.org/docs/rules/object-curly-newline
457
- 'object-curly-newline': [
458
- 'error',
459
- {
460
- ObjectExpression: { consistent: true },
461
- ObjectPattern: { consistent: true },
462
- ImportDeclaration: { consistent: true },
463
- ExportDeclaration: 'always',
464
- },
465
- ],
466
-
467
- // enforce "same line" or "multiple line" on object properties.
468
- // https://eslint.org/docs/rules/object-property-newline
469
- 'object-property-newline': [ 'error', { allowAllPropertiesOnSameLine: true } ],
470
-
471
- // allow just one var statement per function
472
- 'one-var': [ 'error', 'never' ],
473
-
474
- // require a newline around variable declaration
475
- // https://eslint.org/docs/rules/one-var-declaration-per-line
476
- 'one-var-declaration-per-line': [ 'error', 'always' ],
477
-
478
- // require assignment operator shorthand where possible or prohibit it entirely
479
- // https://eslint.org/docs/rules/operator-assignment
480
- 'operator-assignment': [ 'error', 'always' ],
481
-
482
- // Requires operator at the beginning of the line in multiline statements
483
- // https://eslint.org/docs/rules/operator-linebreak
484
- 'operator-linebreak': [ 'error', 'after', { overrides: { '=': 'none' } } ],
485
-
486
- // disallow padding within blocks
487
- 'padded-blocks': [
488
- 'error',
489
- {
490
- blocks: 'never',
491
- classes: 'never',
492
- switches: 'never',
493
- },
494
- {
495
- allowSingleLineBlocks: true,
496
- },
497
- ],
498
-
499
- // Require or disallow padding lines between statements
500
- // https://eslint.org/docs/rules/padding-line-between-statements
501
- 'padding-line-between-statements': 'off',
502
-
503
- // Prefer use of an object spread over Object.assign
504
- // https://eslint.org/docs/rules/prefer-object-spread
505
- 'prefer-object-spread': 'error',
506
-
507
- // require quotes around object literal property names
508
- // https://eslint.org/docs/rules/quote-props.html
509
- 'quote-props': [
510
- 'error',
511
- 'as-needed',
512
- { keywords: true, unnecessary: false, numbers: false },
513
- ],
514
-
515
- // specify whether double or single quotes should be used
516
- 'quotes': [ 'error', 'single', { avoidEscape: true } ],
517
-
518
- // do not require jsdoc
519
- // https://eslint.org/docs/rules/require-jsdoc
520
- 'require-jsdoc': 'off',
521
-
522
- // require or disallow use of semicolons instead of ASI
523
- 'semi': [ 'error', 'always' ],
524
-
525
- // enforce spacing before and after semicolons
526
- 'semi-spacing': [ 'error', { before: false, after: true } ],
527
-
528
- // Enforce location of semicolons
529
- // https://eslint.org/docs/rules/semi-style
530
- 'semi-style': [ 'error', 'last' ],
531
-
532
- // requires object keys to be sorted
533
- 'sort-keys': [ 'off', 'asc', { caseSensitive: false, natural: true } ],
534
-
535
- // sort variables within the same declaration block
536
- 'sort-vars': 'off',
537
-
538
- // require or disallow space before blocks
539
- 'space-before-blocks': [
540
- 'error',
541
- { functions: 'always', keywords: 'always', classes: 'always' },
542
- ],
543
-
544
- // require or disallow space before function opening parenthesis
545
- // https://eslint.org/docs/rules/space-before-function-paren
546
- 'space-before-function-paren': [
547
- 'error',
548
- { anonymous: 'always', named: 'never', asyncArrow: 'always' },
549
- ],
550
-
551
- // require or disallow spaces inside parentheses
552
- 'space-in-parens': [ 'error', 'never' ],
553
-
554
- // require spaces around operators
555
- 'space-infix-ops': [ 'error', { int32Hint: false } ],
556
-
557
- // Require or disallow spaces before/after unary operators
558
- // https://eslint.org/docs/rules/space-unary-ops
559
- 'space-unary-ops': [
560
- 'error',
561
- { words: true, nonwords: false, overrides: { } },
562
- ],
563
-
564
- // require or disallow a space immediately following the // or /* in a comment
565
- // https://eslint.org/docs/rules/spaced-comment
566
- 'spaced-comment': [
567
- 'error',
568
- 'always',
569
- {
570
- line: {
571
- exceptions: [ '-', '+' ],
572
- markers: [ '=', '!' ], // space here to support sprockets directives
573
- },
574
- block: {
575
- exceptions: [ '-', '+' ],
576
- markers: [ '=', '!', ':', '::' ], // space here to support sprockets directives and flow comment types
577
- balanced: true,
578
- },
579
- },
580
- ],
581
-
582
- // Enforce spacing around colons of switch statements
583
- // https://eslint.org/docs/rules/switch-colon-spacing
584
- 'switch-colon-spacing': [ 'error', { after: true, before: false } ],
585
-
586
- // Require or disallow spacing between template tags and their literals
587
- // https://eslint.org/docs/rules/template-tag-spacing
588
- 'template-tag-spacing': [ 'error', 'never' ],
589
-
590
- // require or disallow the Unicode Byte Order Mark
591
- // https://eslint.org/docs/rules/unicode-bom
592
- 'unicode-bom': [ 'error', 'never' ],
593
-
594
- // require regex literals to be wrapped in parentheses
595
- 'wrap-regex': 'off',
596
- },
597
- };
@@ -1,53 +0,0 @@
1
- const confusingBrowserGlobals = require('confusing-browser-globals');
2
-
3
- module.exports = {
4
- rules: {
5
- // enforce or disallow variable initializations at definition
6
- 'init-declarations': 'off',
7
-
8
- // disallow the catch clause parameter name being the same as a variable in the outer scope
9
- 'no-catch-shadow': 'error',
10
-
11
- // disallow deletion of variables
12
- 'no-delete-var': 'error',
13
-
14
- // disallow labels that share a name with a variable
15
- // https://eslint.org/docs/rules/no-label-var
16
- 'no-label-var': 'error',
17
-
18
- // disallow specific globals
19
- 'no-restricted-globals': [ 'error', 'isFinite', 'isNaN' ].concat(confusingBrowserGlobals),
20
-
21
- // disallow declaration of variables already declared in the outer scope
22
- 'no-shadow': [
23
- 'error',
24
- { builtinGlobals: false, hoist: 'all', allow: [] },
25
- ],
26
-
27
- // disallow shadowing of names such as arguments
28
- 'no-shadow-restricted-names': 'error',
29
-
30
- // disallow use of undeclared variables unless mentioned in a /*global */ block
31
- 'no-undef': 'error',
32
-
33
- // disallow use of undefined when initializing variables
34
- 'no-undef-init': 'error',
35
-
36
- // disallow use of undefined variable
37
- // https://eslint.org/docs/rules/no-undefined
38
- // TODO: enable?
39
- 'no-undefined': 'off',
40
-
41
- // disallow declaration of variables that are not used in the code
42
- 'no-unused-vars': [
43
- 'error',
44
- { vars: 'all', args: 'after-used', ignoreRestSiblings: true },
45
- ],
46
-
47
- // disallow use of variables before they are defined
48
- 'no-use-before-define': [
49
- 'error',
50
- { functions: true, classes: true, variables: true },
51
- ],
52
- },
53
- };
@@ -1,14 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 4
6
- charset = utf-8
7
- trim_trailing_whitespace = true
8
- insert_final_newline = true
9
- end_of_line = lf
10
- # editorconfig-tools is unable to ignore longs strings or urls
11
- max_line_length = off
12
-
13
- [*.md]
14
- trim_trailing_whitespace = false
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "./index.js"
3
- }