@ethang/eslint-config 18.1.5 → 18.1.7
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.
- package/eslint.config.js +48 -22
- package/package.json +5 -3
package/eslint.config.js
CHANGED
|
@@ -10,7 +10,8 @@ import tanstack from "@tanstack/eslint-plugin-query";
|
|
|
10
10
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
11
11
|
import depend from "eslint-plugin-depend";
|
|
12
12
|
import barrel from "eslint-plugin-barrel-files";
|
|
13
|
-
import
|
|
13
|
+
import compat from "eslint-plugin-compat";
|
|
14
|
+
import lodashConfig from "eslint-plugin-lodash";
|
|
14
15
|
|
|
15
16
|
export const languageOptions = {
|
|
16
17
|
parser,
|
|
@@ -30,8 +31,9 @@ export default tseslint.config(eslintPluginPrettier, {
|
|
|
30
31
|
"@typescript-eslint": tseslint.plugin,
|
|
31
32
|
a11y,
|
|
32
33
|
barrel,
|
|
34
|
+
compat,
|
|
33
35
|
depend,
|
|
34
|
-
|
|
36
|
+
lodash: lodashConfig,
|
|
35
37
|
n,
|
|
36
38
|
perfectionist,
|
|
37
39
|
sonar,
|
|
@@ -44,6 +46,7 @@ export default tseslint.config(eslintPluginPrettier, {
|
|
|
44
46
|
"barrel/avoid-importing-barrel-files": "error",
|
|
45
47
|
"barrel/avoid-namespace-import": "error",
|
|
46
48
|
"barrel/avoid-re-export-all": "error",
|
|
49
|
+
"compat/compat": "error",
|
|
47
50
|
|
|
48
51
|
"accessor-pairs": "error",
|
|
49
52
|
"array-callback-return": "error",
|
|
@@ -331,26 +334,6 @@ export default tseslint.config(eslintPluginPrettier, {
|
|
|
331
334
|
"@typescript-eslint/unified-signatures": "error",
|
|
332
335
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
|
|
333
336
|
|
|
334
|
-
"github/a11y-no-visually-hidden-interactive-element": "error",
|
|
335
|
-
"github/a11y-no-title-attribute": "error",
|
|
336
|
-
"github/a11y-aria-label-is-well-formatted": "error",
|
|
337
|
-
"github/a11y-role-supports-aria-props": "error",
|
|
338
|
-
"github/a11y-svg-has-accessible-name": "error",
|
|
339
|
-
"github/array-foreach": "error",
|
|
340
|
-
"github/async-currenttarget": "error",
|
|
341
|
-
"github/async-preventdefault": "error",
|
|
342
|
-
"github/get-attribute": "error",
|
|
343
|
-
"github/no-blur": "error",
|
|
344
|
-
"github/no-dataset": "error",
|
|
345
|
-
"github/no-inner-html": "error",
|
|
346
|
-
"github/no-innerText": "error",
|
|
347
|
-
"github/no-dynamic-script-tag": "error",
|
|
348
|
-
"github/no-then": "error",
|
|
349
|
-
"github/no-useless-passive": "error",
|
|
350
|
-
"github/prefer-observers": "error",
|
|
351
|
-
"github/require-passive-events": "error",
|
|
352
|
-
"github/unescaped-html-literal": "error",
|
|
353
|
-
|
|
354
337
|
"unicorn/better-regex": "error",
|
|
355
338
|
"unicorn/catch-error-name": "error",
|
|
356
339
|
"unicorn/consistent-destructuring": "error",
|
|
@@ -465,6 +448,49 @@ export default tseslint.config(eslintPluginPrettier, {
|
|
|
465
448
|
"unicorn/text-encoding-identifier-case": "error",
|
|
466
449
|
"unicorn/throw-new-error": "error",
|
|
467
450
|
|
|
451
|
+
"lodash/callback-binding": "error",
|
|
452
|
+
"lodash/chain-style": ["error", "as-needed"],
|
|
453
|
+
"lodash/chaining": "error",
|
|
454
|
+
"lodash/collection-method-value": "error",
|
|
455
|
+
"lodash/collection-ordering": "error",
|
|
456
|
+
"lodash/collection-return": "error",
|
|
457
|
+
"lodash/consistent-compose": ["error", "flow"],
|
|
458
|
+
"lodash/identity-shorthand": ["error", "always"],
|
|
459
|
+
"lodash/import-scope": ["error", "method"],
|
|
460
|
+
"lodash/matches-prop-shorthand": ["error", "always"],
|
|
461
|
+
"lodash/matches-shorthand": ["error", "always", 3],
|
|
462
|
+
"lodash/no-commit": "error",
|
|
463
|
+
"lodash/no-double-unwrap": "error",
|
|
464
|
+
"lodash/no-extra-args": "error",
|
|
465
|
+
"lodash/no-unbound-this": "error",
|
|
466
|
+
"lodash/path-style": ["error", "string"],
|
|
467
|
+
"lodash/prefer-compact": "error",
|
|
468
|
+
"lodash/prefer-constant": "error",
|
|
469
|
+
"lodash/prefer-filter": "error",
|
|
470
|
+
"lodash/prefer-find": "error",
|
|
471
|
+
"lodash/prefer-flat-map": "error",
|
|
472
|
+
"lodash/prefer-get": "error",
|
|
473
|
+
"lodash/prefer-immutable-method": "error",
|
|
474
|
+
"lodash/prefer-includes": ["error", { includeNative: true }],
|
|
475
|
+
"lodash/prefer-invoke-map": "error",
|
|
476
|
+
"lodash/prefer-is-nil": "error",
|
|
477
|
+
"lodash/prefer-lodash-chain": "error",
|
|
478
|
+
"lodash/prefer-lodash-method": "error",
|
|
479
|
+
"lodash/prefer-lodash-typecheck": "error",
|
|
480
|
+
"lodash/prefer-map": "error",
|
|
481
|
+
"lodash/prefer-matches": "error",
|
|
482
|
+
"lodash/prefer-noop": "error",
|
|
483
|
+
"lodash/prefer-over-quantifier": "error",
|
|
484
|
+
"lodash/prefer-reject": "error",
|
|
485
|
+
"lodash/prefer-some": ["error", { includeNative: true }],
|
|
486
|
+
"lodash/prefer-startswith": "error",
|
|
487
|
+
"lodash/prefer-thru": "error",
|
|
488
|
+
"lodash/prefer-times": "error",
|
|
489
|
+
"lodash/prefer-wrapper-method": "error",
|
|
490
|
+
"lodash/preferred-alias": "error",
|
|
491
|
+
"lodash/prop-shorthand": ["error", "always"],
|
|
492
|
+
"lodash/unwrap": "error",
|
|
493
|
+
|
|
468
494
|
"sonar/cognitive-complexity": "error",
|
|
469
495
|
"sonar/elseif-without-else": "error",
|
|
470
496
|
"sonar/max-switch-cases": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
"eslint-config-prettier": "^9.1.0",
|
|
25
25
|
"eslint-plugin-astro": "^1.2.3",
|
|
26
26
|
"eslint-plugin-barrel-files": "^2.1.0",
|
|
27
|
+
"eslint-plugin-compat": "^6.0.0",
|
|
27
28
|
"eslint-plugin-depend": "^0.9.0",
|
|
28
|
-
"eslint-plugin-github": "^5.0.1",
|
|
29
29
|
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
30
|
+
"eslint-plugin-lodash": "^8.0.0",
|
|
30
31
|
"eslint-plugin-n": "^17.10.1",
|
|
31
32
|
"eslint-plugin-perfectionist": "^3.1.0",
|
|
32
33
|
"eslint-plugin-prettier": "^5.2.1",
|
|
@@ -47,9 +48,10 @@
|
|
|
47
48
|
"eslint-config-prettier": "^9.1.0",
|
|
48
49
|
"eslint-plugin-astro": "^1.2.3",
|
|
49
50
|
"eslint-plugin-barrel-files": "^2.1.0",
|
|
51
|
+
"eslint-plugin-compat": "^6.0.0",
|
|
50
52
|
"eslint-plugin-depend": "^0.9.0",
|
|
51
|
-
"eslint-plugin-github": "^5.0.1",
|
|
52
53
|
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
54
|
+
"eslint-plugin-lodash": "^8.0.0",
|
|
53
55
|
"eslint-plugin-n": "^17.10.1",
|
|
54
56
|
"eslint-plugin-perfectionist": "^3.1.0",
|
|
55
57
|
"eslint-plugin-prettier": "^5.2.1",
|