@azat-io/eslint-config 2.75.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.
@@ -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.75.0",
3
+ "version": "2.76.0",
4
4
  "description": "ESLint shareable config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -28,31 +28,32 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
31
- "@vitest/eslint-plugin": "1.6.13",
31
+ "@vitest/eslint-plugin": "1.6.14",
32
32
  "astro-eslint-parser": "^1.4.0",
33
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.8.1",
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
41
  "eslint-plugin-package-json": "^0.91.1",
42
- "eslint-plugin-perfectionist": "^5.7.0",
42
+ "eslint-plugin-perfectionist": "^5.8.0",
43
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": "^3.0.0",
47
+ "eslint-plugin-react-dom": "^4.2.3",
48
48
  "eslint-plugin-react-hooks": "^7.0.1",
49
- "eslint-plugin-react-naming-convention": "^3.0.0",
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": "^3.0.0",
52
- "eslint-plugin-react-x": "^3.0.0",
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.16.0",
56
+ "eslint-plugin-svelte": "^3.17.0",
56
57
  "eslint-plugin-unicorn": "^64.0.0",
57
58
  "eslint-plugin-vue": "^10.8.0",
58
59
  "globals": "^17.4.0",
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)