@azat-io/eslint-config 2.74.0 → 2.76.0
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/dist/core/index.js +4 -0
- package/dist/react/index.js +6 -6
- package/package.json +16 -15
- package/readme.md +1 -0
package/dist/core/index.js
CHANGED
|
@@ -432,6 +432,7 @@ function core(config) {
|
|
|
432
432
|
"unicorn/consistent-destructuring": "error",
|
|
433
433
|
"unicorn/consistent-empty-array-spread": "error",
|
|
434
434
|
"unicorn/consistent-existence-index-check": "error",
|
|
435
|
+
"unicorn/consistent-template-literal-escape": "error",
|
|
435
436
|
"unicorn/custom-error-definition": "error",
|
|
436
437
|
"unicorn/error-message": "error",
|
|
437
438
|
"unicorn/escape-case": "error",
|
|
@@ -471,6 +472,7 @@ function core(config) {
|
|
|
471
472
|
"unicorn/no-unused-properties": "error",
|
|
472
473
|
"unicorn/no-useless-collection-argument": "error",
|
|
473
474
|
"unicorn/no-useless-fallback-in-spread": "error",
|
|
475
|
+
"unicorn/no-useless-iterator-to-array": "error",
|
|
474
476
|
"unicorn/no-useless-length-check": "error",
|
|
475
477
|
"unicorn/no-useless-promise-resolve-reject": "error",
|
|
476
478
|
"unicorn/no-useless-spread": "error",
|
|
@@ -513,6 +515,7 @@ function core(config) {
|
|
|
513
515
|
"unicorn/prefer-regexp-test": "error",
|
|
514
516
|
"unicorn/prefer-set-has": "error",
|
|
515
517
|
"unicorn/prefer-set-size": "error",
|
|
518
|
+
"unicorn/prefer-simple-condition-first": "error",
|
|
516
519
|
"unicorn/prefer-single-call": "error",
|
|
517
520
|
"unicorn/prefer-spread": "error",
|
|
518
521
|
"unicorn/prefer-string-raw": "error",
|
|
@@ -543,6 +546,7 @@ function core(config) {
|
|
|
543
546
|
"unicorn/require-module-attributes": "error",
|
|
544
547
|
"unicorn/require-module-specifiers": "error",
|
|
545
548
|
"unicorn/require-number-to-fixed-digits-argument": "error",
|
|
549
|
+
"unicorn/switch-case-break-position": "error",
|
|
546
550
|
"unicorn/template-indent": "error",
|
|
547
551
|
"unicorn/text-encoding-identifier-case": "error",
|
|
548
552
|
"unicorn/throw-new-error": "error"
|
package/dist/react/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { interopDefault } from "../utilities.js";
|
|
2
2
|
async function react(config) {
|
|
3
3
|
if (!config.react) return {};
|
|
4
|
-
let [reactCompilerPlugin, reactDomPlugin, reactHooksPlugin, reactNamingConventionPlugin, reactPerfPlugin, reactWebApiPlugin, reactXPlugin] = await Promise.all([
|
|
4
|
+
let [reactCompilerPlugin, reactDomPlugin, reactJsxPlugin, reactHooksPlugin, reactNamingConventionPlugin, reactPerfPlugin, reactWebApiPlugin, reactXPlugin] = await Promise.all([
|
|
5
5
|
interopDefault(import("eslint-plugin-react-compiler")),
|
|
6
6
|
interopDefault(import("eslint-plugin-react-dom")),
|
|
7
|
+
interopDefault(import("eslint-plugin-react-jsx")),
|
|
7
8
|
interopDefault(import("eslint-plugin-react-hooks")),
|
|
8
9
|
interopDefault(import("eslint-plugin-react-naming-convention")),
|
|
9
10
|
interopDefault(import("eslint-plugin-react-perf")),
|
|
@@ -19,6 +20,7 @@ async function react(config) {
|
|
|
19
20
|
"react-compiler": reactCompilerPlugin,
|
|
20
21
|
"react-dom": reactDomPlugin,
|
|
21
22
|
"react-hooks": reactHooksPlugin,
|
|
23
|
+
"react-jsx": reactJsxPlugin,
|
|
22
24
|
"react-naming-convention": reactNamingConventionPlugin,
|
|
23
25
|
"react-perf": reactPerfPlugin,
|
|
24
26
|
"react-web-api": reactWebApiPlugin,
|
|
@@ -33,7 +35,6 @@ async function react(config) {
|
|
|
33
35
|
"react-dom/no-hydrate": "error",
|
|
34
36
|
"react-dom/no-missing-button-type": "error",
|
|
35
37
|
"react-dom/no-missing-iframe-sandbox": "error",
|
|
36
|
-
"react-dom/no-namespace": "error",
|
|
37
38
|
"react-dom/no-render": "error",
|
|
38
39
|
"react-dom/no-render-return-value": "error",
|
|
39
40
|
"react-dom/no-script-url": "error",
|
|
@@ -44,6 +45,8 @@ async function react(config) {
|
|
|
44
45
|
"react-dom/no-void-elements-with-children": "error",
|
|
45
46
|
"react-hooks/exhaustive-deps": "error",
|
|
46
47
|
"react-hooks/rules-of-hooks": "error",
|
|
48
|
+
"react-jsx/no-namespace": "error",
|
|
49
|
+
"react-jsx/no-useless-fragment": "error",
|
|
47
50
|
"react-naming-convention/context-name": "error",
|
|
48
51
|
"react-naming-convention/id-name": "error",
|
|
49
52
|
"react-naming-convention/use-state": "error",
|
|
@@ -72,9 +75,6 @@ async function react(config) {
|
|
|
72
75
|
"react-web-api/no-leaked-resize-observer": "error",
|
|
73
76
|
"react-web-api/no-leaked-timeout": "error",
|
|
74
77
|
"react-web-api/no-leaked-websocket": "error",
|
|
75
|
-
"react-x/jsx-key-before-spread": "error",
|
|
76
|
-
"react-x/jsx-shorthand-boolean": "error",
|
|
77
|
-
"react-x/jsx-shorthand-fragment": "error",
|
|
78
78
|
"react-x/no-access-state-in-setstate": "error",
|
|
79
79
|
"react-x/no-array-index-key": "error",
|
|
80
80
|
"react-x/no-class-component": "error",
|
|
@@ -83,6 +83,7 @@ async function react(config) {
|
|
|
83
83
|
"react-x/no-component-will-receive-props": "error",
|
|
84
84
|
"react-x/no-component-will-update": "error",
|
|
85
85
|
"react-x/no-duplicate-key": "error",
|
|
86
|
+
"react-x/no-key-after-spread": "error",
|
|
86
87
|
"react-x/no-nested-component-definitions": "error",
|
|
87
88
|
"react-x/no-unnecessary-use-callback": "error",
|
|
88
89
|
"react-x/no-unnecessary-use-memo": "error",
|
|
@@ -92,7 +93,6 @@ async function react(config) {
|
|
|
92
93
|
"react-x/no-unused-props": "error",
|
|
93
94
|
"react-x/no-unused-state": "error",
|
|
94
95
|
"react-x/no-use-context": "error",
|
|
95
|
-
"react-x/no-useless-fragment": "error",
|
|
96
96
|
"react-x/prefer-namespace-import": "error",
|
|
97
97
|
"react-x/set-state-in-effect": "error"
|
|
98
98
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azat-io/eslint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.76.0",
|
|
4
4
|
"description": "ESLint shareable config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -28,37 +28,38 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
31
|
-
"@vitest/eslint-plugin": "1.6.
|
|
32
|
-
"astro-eslint-parser": "^1.
|
|
33
|
-
"eslint-config-flat-gitignore": "^2.
|
|
31
|
+
"@vitest/eslint-plugin": "1.6.14",
|
|
32
|
+
"astro-eslint-parser": "^1.4.0",
|
|
33
|
+
"eslint-config-flat-gitignore": "^2.3.0",
|
|
34
34
|
"eslint-plugin-astro": "^1.6.0",
|
|
35
35
|
"eslint-plugin-de-morgan": "^2.1.1",
|
|
36
36
|
"eslint-plugin-depend": "^1.5.0",
|
|
37
37
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
38
|
-
"eslint-plugin-jsdoc": "^62.
|
|
38
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
39
39
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
40
40
|
"eslint-plugin-n": "^17.24.0",
|
|
41
|
-
"eslint-plugin-package-json": "^0.91.
|
|
42
|
-
"eslint-plugin-perfectionist": "^5.
|
|
43
|
-
"eslint-plugin-prefer-let": "^4.2.
|
|
41
|
+
"eslint-plugin-package-json": "^0.91.1",
|
|
42
|
+
"eslint-plugin-perfectionist": "^5.8.0",
|
|
43
|
+
"eslint-plugin-prefer-let": "^4.2.2",
|
|
44
44
|
"eslint-plugin-promise": "^7.2.1",
|
|
45
45
|
"eslint-plugin-qwik": "2.0.0-beta.21",
|
|
46
46
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
47
|
-
"eslint-plugin-react-dom": "^
|
|
47
|
+
"eslint-plugin-react-dom": "^4.2.3",
|
|
48
48
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
49
|
-
"eslint-plugin-react-
|
|
49
|
+
"eslint-plugin-react-jsx": "^4.2.3",
|
|
50
|
+
"eslint-plugin-react-naming-convention": "^4.2.3",
|
|
50
51
|
"eslint-plugin-react-perf": "^3.3.3",
|
|
51
|
-
"eslint-plugin-react-web-api": "^
|
|
52
|
-
"eslint-plugin-react-x": "^
|
|
52
|
+
"eslint-plugin-react-web-api": "^4.2.3",
|
|
53
|
+
"eslint-plugin-react-x": "^4.2.3",
|
|
53
54
|
"eslint-plugin-regexp": "^3.1.0",
|
|
54
55
|
"eslint-plugin-sonarjs": "^4.0.2",
|
|
55
|
-
"eslint-plugin-svelte": "^3.
|
|
56
|
-
"eslint-plugin-unicorn": "^
|
|
56
|
+
"eslint-plugin-svelte": "^3.17.0",
|
|
57
|
+
"eslint-plugin-unicorn": "^64.0.0",
|
|
57
58
|
"eslint-plugin-vue": "^10.8.0",
|
|
58
59
|
"globals": "^17.4.0",
|
|
59
60
|
"jsonc-eslint-parser": "^3.1.0",
|
|
60
61
|
"svelte-eslint-parser": "^1.6.0",
|
|
61
|
-
"typescript-eslint": "^8.
|
|
62
|
+
"typescript-eslint": "^8.58.0",
|
|
62
63
|
"vue-eslint-parser": "^10.4.0"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|
package/readme.md
CHANGED
|
@@ -153,6 +153,7 @@ This config uses the following plugins:
|
|
|
153
153
|
- [eslint-plugin-react-compiler](https://github.com/facebook/react/tree/main/compiler/packages/eslint-plugin-react-compiler)
|
|
154
154
|
- [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react)
|
|
155
155
|
- [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
|
|
156
|
+
- [eslint-plugin-react-jsx](https://github.com/Rel1cx/eslint-react)
|
|
156
157
|
- [eslint-plugin-react-naming-convention](https://github.com/Rel1cx/eslint-react)
|
|
157
158
|
- [eslint-plugin-react-perf](https://github.com/cvazac/eslint-plugin-react-perf)
|
|
158
159
|
- [eslint-plugin-react-web-api](https://github.com/Rel1cx/eslint-react)
|