@abinnovision/eslint-config-react 3.2.0 → 4.0.0-beta.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.
@@ -1,7 +1,7 @@
1
1
  const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
2
  let eslint_config = require("eslint/config");
3
3
  let eslint_plugin_better_tailwindcss = require("eslint-plugin-better-tailwindcss");
4
- eslint_plugin_better_tailwindcss = require_runtime.__toESM(eslint_plugin_better_tailwindcss);
4
+ eslint_plugin_better_tailwindcss = require_runtime.__toESM(eslint_plugin_better_tailwindcss, 1);
5
5
  //#region src/configs/flavour-tailwind.ts
6
6
  /**
7
7
  * ESLint configuration for Tailwind CSS.
@@ -12,16 +12,51 @@ const config = (0, eslint_config.defineConfig)([{
12
12
  files: ["**/*.{js,jsx,ts,tsx}"],
13
13
  plugins: { "better-tailwindcss": eslint_plugin_better_tailwindcss.default },
14
14
  rules: {
15
+ /**
16
+ * Enforce consistent line wrapping.
17
+ *
18
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
19
+ */
15
20
  "better-tailwindcss/enforce-consistent-line-wrapping": ["warn", {
16
21
  preferSingleLine: true,
17
22
  indent: "tab",
18
23
  strictness: "loose"
19
24
  }],
25
+ /**
26
+ * Enforce consistent class order.
27
+ *
28
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
29
+ */
20
30
  "better-tailwindcss/enforce-consistent-class-order": "warn",
31
+ /**
32
+ * Enforce shorthand classes.
33
+ *
34
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
35
+ */
21
36
  "better-tailwindcss/enforce-shorthand-classes": "warn",
37
+ /**
38
+ * Remove duplicate classes.
39
+ *
40
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
41
+ */
22
42
  "better-tailwindcss/no-duplicate-classes": "warn",
43
+ /**
44
+ * Disallow unnecessary whitespace.
45
+ *
46
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
47
+ */
23
48
  "better-tailwindcss/no-unnecessary-whitespace": "warn",
49
+ /**
50
+ * Report unregistered classes.
51
+ *
52
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
53
+ */
24
54
  "better-tailwindcss/no-unknown-classes": ["warn", { detectComponentClasses: true }],
55
+ /**
56
+ * Report conflicting classes.
57
+ *
58
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
59
+ */
25
60
  "better-tailwindcss/no-conflicting-classes": "error"
26
61
  }
27
62
  }]);
@@ -1,11 +1,9 @@
1
- import * as eslint_config0 from "eslint/config";
2
-
3
1
  //#region src/configs/flavour-tailwind.d.ts
4
2
  /**
5
3
  * ESLint configuration for Tailwind CSS.
6
4
  *
7
5
  * Note that this configuration include stylistic rules.
8
6
  */
9
- declare const config: eslint_config0.Config[];
7
+ declare const config: import("eslint/config").Config[];
10
8
  //#endregion
11
9
  export { config };
@@ -1,11 +1,9 @@
1
- import * as eslint_config0 from "eslint/config";
2
-
3
1
  //#region src/configs/flavour-tailwind.d.ts
4
2
  /**
5
3
  * ESLint configuration for Tailwind CSS.
6
4
  *
7
5
  * Note that this configuration include stylistic rules.
8
6
  */
9
- declare const config: eslint_config0.Config[];
7
+ declare const config: import("eslint/config").Config[];
10
8
  //#endregion
11
9
  export { config };
@@ -10,16 +10,51 @@ const config = defineConfig([{
10
10
  files: ["**/*.{js,jsx,ts,tsx}"],
11
11
  plugins: { "better-tailwindcss": betterTailwindcss },
12
12
  rules: {
13
+ /**
14
+ * Enforce consistent line wrapping.
15
+ *
16
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
17
+ */
13
18
  "better-tailwindcss/enforce-consistent-line-wrapping": ["warn", {
14
19
  preferSingleLine: true,
15
20
  indent: "tab",
16
21
  strictness: "loose"
17
22
  }],
23
+ /**
24
+ * Enforce consistent class order.
25
+ *
26
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
27
+ */
18
28
  "better-tailwindcss/enforce-consistent-class-order": "warn",
29
+ /**
30
+ * Enforce shorthand classes.
31
+ *
32
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
33
+ */
19
34
  "better-tailwindcss/enforce-shorthand-classes": "warn",
35
+ /**
36
+ * Remove duplicate classes.
37
+ *
38
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
39
+ */
20
40
  "better-tailwindcss/no-duplicate-classes": "warn",
41
+ /**
42
+ * Disallow unnecessary whitespace.
43
+ *
44
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
45
+ */
21
46
  "better-tailwindcss/no-unnecessary-whitespace": "warn",
47
+ /**
48
+ * Report unregistered classes.
49
+ *
50
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
51
+ */
22
52
  "better-tailwindcss/no-unknown-classes": ["warn", { detectComponentClasses: true }],
53
+ /**
54
+ * Report conflicting classes.
55
+ *
56
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
57
+ */
23
58
  "better-tailwindcss/no-conflicting-classes": "error"
24
59
  }
25
60
  }]);
@@ -1,2 +1,4 @@
1
- require("./react.cjs");
2
- require("./flavour-tailwind.cjs");
1
+ const require_react = require("./react.cjs");
2
+ const require_flavour_tailwind = require("./flavour-tailwind.cjs");
3
+ exports.react = require_react.config;
4
+ exports.tailwind = require_flavour_tailwind.config;
@@ -1,3 +1,3 @@
1
- import "./react.mjs";
2
- import "./flavour-tailwind.mjs";
3
- export {};
1
+ import { config } from "./react.mjs";
2
+ import { config as config$1 } from "./flavour-tailwind.mjs";
3
+ export { config as react, config$1 as tailwind };
@@ -1,9 +1,9 @@
1
1
  const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
2
  let _eslint_react_eslint_plugin = require("@eslint-react/eslint-plugin");
3
- _eslint_react_eslint_plugin = require_runtime.__toESM(_eslint_react_eslint_plugin);
3
+ _eslint_react_eslint_plugin = require_runtime.__toESM(_eslint_react_eslint_plugin, 1);
4
4
  let eslint_config = require("eslint/config");
5
5
  let eslint_plugin_react_hooks = require("eslint-plugin-react-hooks");
6
- eslint_plugin_react_hooks = require_runtime.__toESM(eslint_plugin_react_hooks);
6
+ eslint_plugin_react_hooks = require_runtime.__toESM(eslint_plugin_react_hooks, 1);
7
7
  //#region src/configs/react.ts
8
8
  const { configs: _, ...eslintReactHooksPlugin } = eslint_plugin_react_hooks.default;
9
9
  const config = (0, eslint_config.defineConfig)([{
@@ -12,30 +12,168 @@ const config = (0, eslint_config.defineConfig)([{
12
12
  languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } },
13
13
  extends: [_eslint_react_eslint_plugin.default.configs.recommended],
14
14
  rules: {
15
+ /**
16
+ * Enforce Rules of Hooks.
17
+ *
18
+ * @see https://react.dev/reference/react/hooks#rules-of-hooks
19
+ */
15
20
  "react-hooks/rules-of-hooks": "error",
21
+ /**
22
+ * Verify dependencies array in hooks.
23
+ *
24
+ * @see https://react.dev/reference/react/hooks#rules-of-hooks
25
+ */
16
26
  "react-hooks/exhaustive-deps": "warn",
17
- "@eslint-react/dom/no-dangerously-set-innerhtml": "error",
18
- "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
19
- "@eslint-react/dom/no-script-url": "error",
20
- "@eslint-react/dom/no-unsafe-target-blank": "error",
21
- "@eslint-react/dom/no-missing-iframe-sandbox": "error",
22
- "@eslint-react/dom/no-unsafe-iframe-sandbox": "error",
23
- "@eslint-react/web-api/no-leaked-event-listener": "error",
24
- "@eslint-react/web-api/no-leaked-interval": "error",
25
- "@eslint-react/web-api/no-leaked-timeout": "error",
26
- "@eslint-react/web-api/no-leaked-resize-observer": "error",
27
+ /**
28
+ * Disallow dangerouslySetInnerHTML.
29
+ *
30
+ * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
31
+ */
32
+ "@eslint-react/dom-no-dangerously-set-innerhtml": "error",
33
+ /**
34
+ * Disallow dangerouslySetInnerHTML with children.
35
+ *
36
+ * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
37
+ */
38
+ "@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
39
+ /**
40
+ * Disallow javascript: URLs.
41
+ *
42
+ * @see https://eslint-react.xyz/docs/rules/dom-no-script-url
43
+ */
44
+ "@eslint-react/dom-no-script-url": "error",
45
+ /**
46
+ * Enforce security attributes on target="_blank" links.
47
+ *
48
+ * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
49
+ */
50
+ "@eslint-react/dom-no-unsafe-target-blank": "error",
51
+ /**
52
+ * Require sandbox attribute on iframes.
53
+ *
54
+ * @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
55
+ */
56
+ "@eslint-react/dom-no-missing-iframe-sandbox": "error",
57
+ /**
58
+ * Disallow unsafe iframe sandbox values.
59
+ *
60
+ * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
61
+ */
62
+ "@eslint-react/dom-no-unsafe-iframe-sandbox": "error",
63
+ /**
64
+ * Disallow string style prop; use an object instead.
65
+ *
66
+ * @see https://eslint-react.xyz/docs/rules/dom-no-string-style-prop
67
+ */
68
+ "@eslint-react/dom-no-string-style-prop": "error",
69
+ /**
70
+ * Disallow unknown DOM properties.
71
+ *
72
+ * @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
73
+ */
74
+ "@eslint-react/dom-no-unknown-property": "error",
75
+ /**
76
+ * Require an explicit type attribute on button elements.
77
+ *
78
+ * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
79
+ */
80
+ "@eslint-react/dom-no-missing-button-type": "warn",
81
+ /**
82
+ * Prevent memory leaks from event listeners.
83
+ *
84
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
85
+ */
86
+ "@eslint-react/web-api-no-leaked-event-listener": "error",
87
+ /**
88
+ * Prevent memory leaks from intervals.
89
+ *
90
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
91
+ */
92
+ "@eslint-react/web-api-no-leaked-interval": "error",
93
+ /**
94
+ * Prevent memory leaks from timeouts.
95
+ *
96
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
97
+ */
98
+ "@eslint-react/web-api-no-leaked-timeout": "error",
99
+ /**
100
+ * Prevent memory leaks from resize observers.
101
+ *
102
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
103
+ */
104
+ "@eslint-react/web-api-no-leaked-resize-observer": "error",
105
+ /**
106
+ * Prevent memory leaks from unaborted fetch requests.
107
+ *
108
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-fetch
109
+ */
110
+ "@eslint-react/web-api-no-leaked-fetch": "error",
111
+ /**
112
+ * Prevent memory leaks from intersection observers.
113
+ *
114
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-intersection-observer
115
+ */
116
+ "@eslint-react/web-api-no-leaked-intersection-observer": "error",
117
+ /**
118
+ * Warn against using array indices as keys.
119
+ *
120
+ * @see https://eslint-react.xyz/docs/rules/no-array-index-key
121
+ */
27
122
  "@eslint-react/no-array-index-key": "warn",
123
+ /**
124
+ * Prevent unstable nested component definitions.
125
+ *
126
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
127
+ */
28
128
  "@eslint-react/no-nested-component-definitions": "error",
129
+ /**
130
+ * Warn against unstable context values.
131
+ *
132
+ * @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
133
+ */
29
134
  "@eslint-react/no-unstable-context-value": "warn",
30
- "@eslint-react/no-unnecessary-use-callback": "warn",
31
- "@eslint-react/no-unnecessary-use-memo": "warn",
32
- "@eslint-react/jsx-no-duplicate-props": "error",
33
- "@eslint-react/jsx-no-undef": "error",
135
+ /**
136
+ * Warn against referential-type values used as default props.
137
+ *
138
+ * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
139
+ */
140
+ "@eslint-react/no-unstable-default-props": "warn",
141
+ /**
142
+ * Prevent leaked values (e.g. 0/NaN) from conditional rendering.
143
+ *
144
+ * @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
145
+ */
146
+ "@eslint-react/no-leaked-conditional-rendering": "error",
147
+ /**
148
+ * Require keys for array elements.
149
+ *
150
+ * @see https://eslint-react.xyz/docs/rules/no-missing-key
151
+ */
34
152
  "@eslint-react/no-missing-key": "error",
35
- "@eslint-react/no-children-prop": "error",
153
+ /**
154
+ * Disallow duplicate keys on sibling elements.
155
+ *
156
+ * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
157
+ */
158
+ "@eslint-react/no-duplicate-key": "error",
159
+ /**
160
+ * Disallow children prop.
161
+ *
162
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-children-prop
163
+ */
164
+ "@eslint-react/jsx-no-children-prop": "error",
165
+ /**
166
+ * Disallow direct state mutation.
167
+ *
168
+ * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
169
+ */
36
170
  "@eslint-react/no-direct-mutation-state": "error",
37
- "@eslint-react/no-string-refs": "error",
38
- "@eslint-react/dom/no-find-dom-node": "error"
171
+ /**
172
+ * Disallow findDOMNode.
173
+ *
174
+ * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
175
+ */
176
+ "@eslint-react/dom-no-find-dom-node": "error"
39
177
  }
40
178
  }]);
41
179
  //#endregion
@@ -1,6 +1,4 @@
1
- import * as eslint_config0 from "eslint/config";
2
-
3
1
  //#region src/configs/react.d.ts
4
- declare const config: eslint_config0.Config[];
2
+ declare const config: import("eslint/config").Config[];
5
3
  //#endregion
6
4
  export { config };
@@ -1,6 +1,4 @@
1
- import * as eslint_config0 from "eslint/config";
2
-
3
1
  //#region src/configs/react.d.ts
4
- declare const config: eslint_config0.Config[];
2
+ declare const config: import("eslint/config").Config[];
5
3
  //#endregion
6
4
  export { config };
@@ -9,30 +9,168 @@ const config = defineConfig([{
9
9
  languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } },
10
10
  extends: [eslintReactPlugin.configs.recommended],
11
11
  rules: {
12
+ /**
13
+ * Enforce Rules of Hooks.
14
+ *
15
+ * @see https://react.dev/reference/react/hooks#rules-of-hooks
16
+ */
12
17
  "react-hooks/rules-of-hooks": "error",
18
+ /**
19
+ * Verify dependencies array in hooks.
20
+ *
21
+ * @see https://react.dev/reference/react/hooks#rules-of-hooks
22
+ */
13
23
  "react-hooks/exhaustive-deps": "warn",
14
- "@eslint-react/dom/no-dangerously-set-innerhtml": "error",
15
- "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
16
- "@eslint-react/dom/no-script-url": "error",
17
- "@eslint-react/dom/no-unsafe-target-blank": "error",
18
- "@eslint-react/dom/no-missing-iframe-sandbox": "error",
19
- "@eslint-react/dom/no-unsafe-iframe-sandbox": "error",
20
- "@eslint-react/web-api/no-leaked-event-listener": "error",
21
- "@eslint-react/web-api/no-leaked-interval": "error",
22
- "@eslint-react/web-api/no-leaked-timeout": "error",
23
- "@eslint-react/web-api/no-leaked-resize-observer": "error",
24
+ /**
25
+ * Disallow dangerouslySetInnerHTML.
26
+ *
27
+ * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
28
+ */
29
+ "@eslint-react/dom-no-dangerously-set-innerhtml": "error",
30
+ /**
31
+ * Disallow dangerouslySetInnerHTML with children.
32
+ *
33
+ * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
34
+ */
35
+ "@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
36
+ /**
37
+ * Disallow javascript: URLs.
38
+ *
39
+ * @see https://eslint-react.xyz/docs/rules/dom-no-script-url
40
+ */
41
+ "@eslint-react/dom-no-script-url": "error",
42
+ /**
43
+ * Enforce security attributes on target="_blank" links.
44
+ *
45
+ * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
46
+ */
47
+ "@eslint-react/dom-no-unsafe-target-blank": "error",
48
+ /**
49
+ * Require sandbox attribute on iframes.
50
+ *
51
+ * @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
52
+ */
53
+ "@eslint-react/dom-no-missing-iframe-sandbox": "error",
54
+ /**
55
+ * Disallow unsafe iframe sandbox values.
56
+ *
57
+ * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
58
+ */
59
+ "@eslint-react/dom-no-unsafe-iframe-sandbox": "error",
60
+ /**
61
+ * Disallow string style prop; use an object instead.
62
+ *
63
+ * @see https://eslint-react.xyz/docs/rules/dom-no-string-style-prop
64
+ */
65
+ "@eslint-react/dom-no-string-style-prop": "error",
66
+ /**
67
+ * Disallow unknown DOM properties.
68
+ *
69
+ * @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
70
+ */
71
+ "@eslint-react/dom-no-unknown-property": "error",
72
+ /**
73
+ * Require an explicit type attribute on button elements.
74
+ *
75
+ * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
76
+ */
77
+ "@eslint-react/dom-no-missing-button-type": "warn",
78
+ /**
79
+ * Prevent memory leaks from event listeners.
80
+ *
81
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
82
+ */
83
+ "@eslint-react/web-api-no-leaked-event-listener": "error",
84
+ /**
85
+ * Prevent memory leaks from intervals.
86
+ *
87
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
88
+ */
89
+ "@eslint-react/web-api-no-leaked-interval": "error",
90
+ /**
91
+ * Prevent memory leaks from timeouts.
92
+ *
93
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
94
+ */
95
+ "@eslint-react/web-api-no-leaked-timeout": "error",
96
+ /**
97
+ * Prevent memory leaks from resize observers.
98
+ *
99
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
100
+ */
101
+ "@eslint-react/web-api-no-leaked-resize-observer": "error",
102
+ /**
103
+ * Prevent memory leaks from unaborted fetch requests.
104
+ *
105
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-fetch
106
+ */
107
+ "@eslint-react/web-api-no-leaked-fetch": "error",
108
+ /**
109
+ * Prevent memory leaks from intersection observers.
110
+ *
111
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-intersection-observer
112
+ */
113
+ "@eslint-react/web-api-no-leaked-intersection-observer": "error",
114
+ /**
115
+ * Warn against using array indices as keys.
116
+ *
117
+ * @see https://eslint-react.xyz/docs/rules/no-array-index-key
118
+ */
24
119
  "@eslint-react/no-array-index-key": "warn",
120
+ /**
121
+ * Prevent unstable nested component definitions.
122
+ *
123
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
124
+ */
25
125
  "@eslint-react/no-nested-component-definitions": "error",
126
+ /**
127
+ * Warn against unstable context values.
128
+ *
129
+ * @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
130
+ */
26
131
  "@eslint-react/no-unstable-context-value": "warn",
27
- "@eslint-react/no-unnecessary-use-callback": "warn",
28
- "@eslint-react/no-unnecessary-use-memo": "warn",
29
- "@eslint-react/jsx-no-duplicate-props": "error",
30
- "@eslint-react/jsx-no-undef": "error",
132
+ /**
133
+ * Warn against referential-type values used as default props.
134
+ *
135
+ * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
136
+ */
137
+ "@eslint-react/no-unstable-default-props": "warn",
138
+ /**
139
+ * Prevent leaked values (e.g. 0/NaN) from conditional rendering.
140
+ *
141
+ * @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
142
+ */
143
+ "@eslint-react/no-leaked-conditional-rendering": "error",
144
+ /**
145
+ * Require keys for array elements.
146
+ *
147
+ * @see https://eslint-react.xyz/docs/rules/no-missing-key
148
+ */
31
149
  "@eslint-react/no-missing-key": "error",
32
- "@eslint-react/no-children-prop": "error",
150
+ /**
151
+ * Disallow duplicate keys on sibling elements.
152
+ *
153
+ * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
154
+ */
155
+ "@eslint-react/no-duplicate-key": "error",
156
+ /**
157
+ * Disallow children prop.
158
+ *
159
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-children-prop
160
+ */
161
+ "@eslint-react/jsx-no-children-prop": "error",
162
+ /**
163
+ * Disallow direct state mutation.
164
+ *
165
+ * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
166
+ */
33
167
  "@eslint-react/no-direct-mutation-state": "error",
34
- "@eslint-react/no-string-refs": "error",
35
- "@eslint-react/dom/no-find-dom-node": "error"
168
+ /**
169
+ * Disallow findDOMNode.
170
+ *
171
+ * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
172
+ */
173
+ "@eslint-react/dom-no-find-dom-node": "error"
36
174
  }
37
175
  }]);
38
176
  //#endregion
package/package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "name": "@abinnovision/eslint-config-react",
3
- "version": "3.2.0",
3
+ "version": "4.0.0-beta.2",
4
+ "description": "Shared ESLint configuration for React applications, building on @abinnovision/eslint-config-base.",
5
+ "keywords": [
6
+ "eslint",
7
+ "eslint-config",
8
+ "react",
9
+ "typescript"
10
+ ],
11
+ "homepage": "https://github.com/abinnovision/js-commons",
12
+ "bugs": {
13
+ "url": "https://github.com/abinnovision/js-commons/issues"
14
+ },
4
15
  "repository": {
5
- "url": "https://github.com/abinnovision/js-commons"
16
+ "type": "git",
17
+ "url": "git+https://github.com/abinnovision/js-commons.git",
18
+ "directory": "packages/eslint-config-react"
6
19
  },
7
20
  "license": "Apache-2.0",
8
21
  "author": {
@@ -46,17 +59,17 @@
46
59
  },
47
60
  "prettier": "@abinnovision/prettier-config",
48
61
  "dependencies": {
49
- "@eslint-react/eslint-plugin": "^2.13.0",
50
- "eslint-plugin-better-tailwindcss": "^4.3.2",
62
+ "@eslint-react/eslint-plugin": "^5.14.10",
63
+ "eslint-plugin-better-tailwindcss": "^4.6.1",
51
64
  "eslint-plugin-react-hooks": "^7.1.1"
52
65
  },
53
66
  "devDependencies": {
54
- "@abinnovision/eslint-config-base": "^3.3.0",
67
+ "@abinnovision/eslint-config-base": "^3.4.2-beta.1",
55
68
  "@abinnovision/prettier-config": "^2.2.0",
56
69
  "@internal/tsconfig": "^1.0.0",
57
- "eslint": "^10.0.0",
58
- "prettier": "^3.6.2",
59
- "tsdown": "^0.21.3",
70
+ "eslint": "^10.7.0",
71
+ "prettier": "^3.9.5",
72
+ "tsdown": "^0.22.5",
60
73
  "typescript": "^5.9.3"
61
74
  },
62
75
  "peerDependencies": {
@@ -1,2 +0,0 @@
1
- import { config } from "./react.mjs";
2
- import { config as config$1 } from "./flavour-tailwind.mjs";