@eslint-react/eslint-plugin 2.0.0-next.17 → 2.0.0-next.171

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/index.js CHANGED
@@ -1,448 +1,510 @@
1
- import reactDebug from 'eslint-plugin-react-debug';
2
- import reactDom from 'eslint-plugin-react-dom';
3
- import reactNamingConvention from 'eslint-plugin-react-naming-convention';
4
- import reactWebApi from 'eslint-plugin-react-web-api';
5
- import react from 'eslint-plugin-react-x';
6
- import { DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
1
+ import { __export } from "./chunk-Cl8Af3a2.js";
2
+ import reactDebug from "eslint-plugin-react-debug";
3
+ import reactDom from "eslint-plugin-react-dom";
4
+ import reactHooksExtra from "eslint-plugin-react-hooks-extra";
5
+ import reactNamingConvention from "eslint-plugin-react-naming-convention";
6
+ import reactWebApi from "eslint-plugin-react-web-api";
7
+ import react from "eslint-plugin-react-x";
8
+ import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
7
9
 
8
- var __defProp = Object.defineProperty;
9
- var __export = (target, all) => {
10
- for (var name14 in all)
11
- __defProp(target, name14, { get: all[name14], enumerable: true });
12
- };
13
-
14
- // package.json
10
+ //#region package.json
15
11
  var name = "@eslint-react/eslint-plugin";
16
- var version = "2.0.0-next.17";
12
+ var version = "2.0.0-next.171";
17
13
 
18
- // src/configs/all.ts
19
- var all_exports = {};
20
- __export(all_exports, {
21
- name: () => name4,
22
- plugins: () => plugins3,
23
- rules: () => rules3,
24
- settings: () => settings3
25
- });
26
-
27
- // src/configs/dom.ts
14
+ //#endregion
15
+ //#region src/configs/dom.ts
28
16
  var dom_exports = {};
29
17
  __export(dom_exports, {
30
- name: () => name2,
31
- plugins: () => plugins,
32
- rules: () => rules,
33
- settings: () => settings
18
+ name: () => name$13,
19
+ plugins: () => plugins$7,
20
+ rules: () => rules$8,
21
+ settings: () => settings$6
34
22
  });
35
- var name2 = "@eslint-react/dom";
36
- var rules = {
37
- "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
38
- "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
39
- "@eslint-react/dom/no-find-dom-node": "error",
40
- "@eslint-react/dom/no-flush-sync": "error",
41
- "@eslint-react/dom/no-hydrate": "error",
42
- "@eslint-react/dom/no-missing-button-type": "warn",
43
- "@eslint-react/dom/no-missing-iframe-sandbox": "warn",
44
- "@eslint-react/dom/no-namespace": "error",
45
- "@eslint-react/dom/no-render": "error",
46
- "@eslint-react/dom/no-render-return-value": "error",
47
- "@eslint-react/dom/no-script-url": "warn",
48
- "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
49
- "@eslint-react/dom/no-unsafe-target-blank": "warn",
50
- "@eslint-react/dom/no-use-form-state": "error",
51
- "@eslint-react/dom/no-void-elements-with-children": "error"
52
- };
53
- var plugins = {
54
- "@eslint-react/dom": reactDom
55
- };
56
- var settings = {
57
- "react-x": DEFAULT_ESLINT_REACT_SETTINGS
23
+ const name$13 = "@eslint-react/dom";
24
+ const rules$8 = {
25
+ "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
26
+ "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
27
+ "@eslint-react/dom/no-find-dom-node": "error",
28
+ "@eslint-react/dom/no-flush-sync": "error",
29
+ "@eslint-react/dom/no-hydrate": "error",
30
+ "@eslint-react/dom/no-missing-button-type": "warn",
31
+ "@eslint-react/dom/no-missing-iframe-sandbox": "warn",
32
+ "@eslint-react/dom/no-namespace": "error",
33
+ "@eslint-react/dom/no-render": "error",
34
+ "@eslint-react/dom/no-render-return-value": "error",
35
+ "@eslint-react/dom/no-script-url": "warn",
36
+ "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
37
+ "@eslint-react/dom/no-unsafe-target-blank": "warn",
38
+ "@eslint-react/dom/no-use-form-state": "error",
39
+ "@eslint-react/dom/no-void-elements-with-children": "error"
58
40
  };
41
+ const plugins$7 = { "@eslint-react/dom": reactDom };
42
+ const settings$6 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
59
43
 
60
- // src/configs/x.ts
44
+ //#endregion
45
+ //#region src/configs/x.ts
61
46
  var x_exports = {};
62
47
  __export(x_exports, {
63
- name: () => name3,
64
- plugins: () => plugins2,
65
- rules: () => rules2,
66
- settings: () => settings2
48
+ name: () => name$12,
49
+ plugins: () => plugins$6,
50
+ rules: () => rules$13,
51
+ settings: () => settings$5
67
52
  });
68
- var name3 = "@eslint-react/x";
69
- var rules2 = {
70
- "@eslint-react/jsx-no-comment-textnodes": "warn",
71
- "@eslint-react/jsx-key-before-spread": "warn",
72
- "@eslint-react/jsx-no-duplicate-props": "warn",
73
- // "@eslint-react/jsx-no-undef": "error",
74
- "@eslint-react/jsx-uses-react": "warn",
75
- "@eslint-react/jsx-uses-vars": "warn",
76
- "@eslint-react/no-access-state-in-setstate": "error",
77
- "@eslint-react/no-array-index-key": "warn",
78
- "@eslint-react/no-children-count": "warn",
79
- "@eslint-react/no-children-for-each": "warn",
80
- "@eslint-react/no-children-map": "warn",
81
- "@eslint-react/no-children-only": "warn",
82
- // "@eslint-react/no-children-prop": "warn",
83
- "@eslint-react/no-children-to-array": "warn",
84
- // "@eslint-react/no-class-component": "warn",
85
- "@eslint-react/no-clone-element": "warn",
86
- "@eslint-react/no-component-will-mount": "error",
87
- "@eslint-react/no-component-will-receive-props": "error",
88
- "@eslint-react/no-component-will-update": "error",
89
- "@eslint-react/no-context-provider": "warn",
90
- "@eslint-react/no-create-ref": "error",
91
- "@eslint-react/no-default-props": "error",
92
- "@eslint-react/no-direct-mutation-state": "error",
93
- // "@eslint-react/prefer-destructuring-assignment": "warn",
94
- // "@eslint-react/prefer-namespace-import": "warn",
95
- // "@eslint-react/prefer-read-only-props": "error",
96
- "@eslint-react/no-direct-set-state-in-use-effect": "warn",
97
- "@eslint-react/no-duplicate-key": "warn",
98
- "@eslint-react/no-forward-ref": "warn",
99
- "@eslint-react/no-implicit-key": "warn",
100
- // "@eslint-react/no-missing-component-display-name": "warn",
101
- // "@eslint-react/no-missing-context-display-name": "warn",
102
- "@eslint-react/no-missing-key": "error",
103
- // "@eslint-react/no-misused-capture-owner-stack": "error",
104
- "@eslint-react/no-nested-component-definitions": "error",
105
- "@eslint-react/no-nested-lazy-component-declarations": "warn",
106
- "@eslint-react/no-prop-types": "error",
107
- "@eslint-react/no-redundant-should-component-update": "error",
108
- "@eslint-react/no-set-state-in-component-did-mount": "warn",
109
- "@eslint-react/no-set-state-in-component-did-update": "warn",
110
- "@eslint-react/no-set-state-in-component-will-update": "warn",
111
- "@eslint-react/no-string-refs": "error",
112
- "@eslint-react/no-unnecessary-use-prefix": "warn",
113
- "@eslint-react/no-unsafe-component-will-mount": "warn",
114
- "@eslint-react/no-unsafe-component-will-receive-props": "warn",
115
- "@eslint-react/no-unsafe-component-will-update": "warn",
116
- "@eslint-react/no-unstable-context-value": "warn",
117
- "@eslint-react/no-unstable-default-props": "warn",
118
- "@eslint-react/no-unused-class-component-members": "warn",
119
- "@eslint-react/no-unused-state": "warn",
120
- "@eslint-react/no-use-context": "warn",
121
- "@eslint-react/no-useless-forward-ref": "warn",
122
- "@eslint-react/prefer-use-state-lazy-initialization": "warn"
123
- };
124
- var plugins2 = {
125
- "@eslint-react": react
126
- };
127
- var settings2 = {
128
- "react-x": DEFAULT_ESLINT_REACT_SETTINGS
53
+ const name$12 = "@eslint-react/x";
54
+ const rules$13 = {
55
+ "@eslint-react/jsx-no-comment-textnodes": "warn",
56
+ "@eslint-react/jsx-no-duplicate-props": "warn",
57
+ "@eslint-react/jsx-uses-react": "warn",
58
+ "@eslint-react/jsx-uses-vars": "warn",
59
+ "@eslint-react/no-access-state-in-setstate": "error",
60
+ "@eslint-react/no-array-index-key": "warn",
61
+ "@eslint-react/no-children-count": "warn",
62
+ "@eslint-react/no-children-for-each": "warn",
63
+ "@eslint-react/no-children-map": "warn",
64
+ "@eslint-react/no-children-only": "warn",
65
+ "@eslint-react/no-children-to-array": "warn",
66
+ "@eslint-react/no-clone-element": "warn",
67
+ "@eslint-react/no-comment-textnodes": "warn",
68
+ "@eslint-react/no-component-will-mount": "error",
69
+ "@eslint-react/no-component-will-receive-props": "error",
70
+ "@eslint-react/no-component-will-update": "error",
71
+ "@eslint-react/no-context-provider": "warn",
72
+ "@eslint-react/no-create-ref": "error",
73
+ "@eslint-react/no-default-props": "error",
74
+ "@eslint-react/no-direct-mutation-state": "error",
75
+ "@eslint-react/no-duplicate-key": "error",
76
+ "@eslint-react/no-forward-ref": "warn",
77
+ "@eslint-react/no-implicit-key": "warn",
78
+ "@eslint-react/no-missing-key": "error",
79
+ "@eslint-react/no-nested-component-definitions": "error",
80
+ "@eslint-react/no-nested-lazy-component-declarations": "error",
81
+ "@eslint-react/no-prop-types": "error",
82
+ "@eslint-react/no-redundant-should-component-update": "error",
83
+ "@eslint-react/no-set-state-in-component-did-mount": "warn",
84
+ "@eslint-react/no-set-state-in-component-did-update": "warn",
85
+ "@eslint-react/no-set-state-in-component-will-update": "warn",
86
+ "@eslint-react/no-string-refs": "error",
87
+ "@eslint-react/no-unnecessary-use-prefix": "warn",
88
+ "@eslint-react/no-unsafe-component-will-mount": "warn",
89
+ "@eslint-react/no-unsafe-component-will-receive-props": "warn",
90
+ "@eslint-react/no-unsafe-component-will-update": "warn",
91
+ "@eslint-react/no-unstable-context-value": "warn",
92
+ "@eslint-react/no-unstable-default-props": "warn",
93
+ "@eslint-react/no-unused-class-component-members": "warn",
94
+ "@eslint-react/no-unused-state": "warn",
95
+ "@eslint-react/no-use-context": "warn",
96
+ "@eslint-react/no-useless-forward-ref": "warn",
97
+ "@eslint-react/prefer-use-state-lazy-initialization": "warn"
129
98
  };
99
+ const plugins$6 = { "@eslint-react": react };
100
+ const settings$5 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
130
101
 
131
- // src/configs/all.ts
132
- var name4 = "@eslint-react/all";
133
- var rules3 = {
134
- "@eslint-react/jsx-no-comment-textnodes": "warn",
135
- "@eslint-react/jsx-no-duplicate-props": "warn",
136
- "@eslint-react/jsx-no-undef": "error",
137
- "@eslint-react/jsx-uses-react": "warn",
138
- "@eslint-react/jsx-uses-vars": "warn",
139
- "@eslint-react/no-access-state-in-setstate": "error",
140
- "@eslint-react/no-array-index-key": "warn",
141
- "@eslint-react/no-children-count": "warn",
142
- "@eslint-react/no-children-for-each": "warn",
143
- "@eslint-react/no-children-map": "warn",
144
- "@eslint-react/no-children-only": "warn",
145
- "@eslint-react/no-children-prop": "warn",
146
- "@eslint-react/no-children-to-array": "warn",
147
- "@eslint-react/no-class-component": "warn",
148
- "@eslint-react/no-clone-element": "warn",
149
- "@eslint-react/no-component-will-mount": "error",
150
- "@eslint-react/no-component-will-receive-props": "error",
151
- "@eslint-react/no-component-will-update": "error",
152
- "@eslint-react/no-context-provider": "warn",
153
- "@eslint-react/no-create-ref": "error",
154
- "@eslint-react/no-default-props": "error",
155
- "@eslint-react/no-direct-mutation-state": "error",
156
- "@eslint-react/no-direct-set-state-in-use-effect": "warn",
157
- "@eslint-react/no-direct-set-state-in-use-layout-effect": "warn",
158
- "@eslint-react/no-duplicate-key": "warn",
159
- "@eslint-react/no-forward-ref": "warn",
160
- "@eslint-react/no-implicit-key": "warn",
161
- "@eslint-react/no-missing-component-display-name": "warn",
162
- "@eslint-react/no-missing-context-display-name": "warn",
163
- "@eslint-react/no-missing-key": "error",
164
- "@eslint-react/no-misused-capture-owner-stack": "error",
165
- "@eslint-react/no-nested-component-definitions": "error",
166
- "@eslint-react/no-nested-lazy-component-declarations": "warn",
167
- "@eslint-react/no-prop-types": "error",
168
- "@eslint-react/no-redundant-should-component-update": "error",
169
- "@eslint-react/no-set-state-in-component-did-mount": "warn",
170
- "@eslint-react/no-set-state-in-component-did-update": "warn",
171
- "@eslint-react/no-set-state-in-component-will-update": "warn",
172
- "@eslint-react/no-string-refs": "error",
173
- "@eslint-react/no-unnecessary-use-callback": "warn",
174
- "@eslint-react/no-unnecessary-use-memo": "warn",
175
- "@eslint-react/no-unnecessary-use-prefix": "warn",
176
- "@eslint-react/no-unsafe-component-will-mount": "warn",
177
- "@eslint-react/no-unsafe-component-will-receive-props": "warn",
178
- "@eslint-react/no-unsafe-component-will-update": "warn",
179
- "@eslint-react/no-unstable-context-value": "warn",
180
- "@eslint-react/no-unstable-default-props": "warn",
181
- "@eslint-react/no-unused-class-component-members": "warn",
182
- "@eslint-react/no-unused-state": "warn",
183
- "@eslint-react/no-use-context": "warn",
184
- "@eslint-react/no-useless-forward-ref": "warn",
185
- "@eslint-react/prefer-destructuring-assignment": "warn",
186
- "@eslint-react/prefer-namespace-import": "warn",
187
- "@eslint-react/prefer-use-state-lazy-initialization": "warn",
188
- "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
189
- "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
190
- "@eslint-react/dom/no-find-dom-node": "error",
191
- "@eslint-react/dom/no-flush-sync": "error",
192
- "@eslint-react/dom/no-hydrate": "error",
193
- "@eslint-react/dom/no-missing-button-type": "warn",
194
- "@eslint-react/dom/no-missing-iframe-sandbox": "warn",
195
- "@eslint-react/dom/no-namespace": "error",
196
- "@eslint-react/dom/no-render": "error",
197
- "@eslint-react/dom/no-render-return-value": "error",
198
- "@eslint-react/dom/no-script-url": "warn",
199
- "@eslint-react/dom/no-unknown-property": "warn",
200
- "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
201
- "@eslint-react/dom/no-unsafe-target-blank": "warn",
202
- "@eslint-react/dom/no-use-form-state": "error",
203
- "@eslint-react/dom/no-void-elements-with-children": "error",
204
- "@eslint-react/web-api/no-leaked-event-listener": "warn",
205
- "@eslint-react/web-api/no-leaked-interval": "warn",
206
- "@eslint-react/web-api/no-leaked-resize-observer": "warn",
207
- "@eslint-react/web-api/no-leaked-timeout": "warn",
208
- "@eslint-react/naming-convention/component-name": "warn",
209
- "@eslint-react/naming-convention/context-name": "warn",
210
- "@eslint-react/naming-convention/filename": "warn",
211
- "@eslint-react/naming-convention/filename-extension": "warn",
212
- "@eslint-react/naming-convention/use-state": "warn"
213
- };
214
- var plugins3 = {
215
- ...plugins2,
216
- ...plugins,
217
- "@eslint-react/debug": reactDebug,
218
- "@eslint-react/naming-convention": reactNamingConvention,
219
- "@eslint-react/web-api": reactWebApi
102
+ //#endregion
103
+ //#region src/configs/all.ts
104
+ var all_exports = {};
105
+ __export(all_exports, {
106
+ name: () => name$11,
107
+ plugins: () => plugins$5,
108
+ rules: () => rules$3,
109
+ settings: () => settings$4
110
+ });
111
+ const name$11 = "@eslint-react/all";
112
+ const rules$3 = {
113
+ "@eslint-react/jsx-key-before-spread": "warn",
114
+ "@eslint-react/jsx-no-comment-textnodes": "warn",
115
+ "@eslint-react/jsx-no-duplicate-props": "warn",
116
+ "@eslint-react/jsx-no-iife": "warn",
117
+ "@eslint-react/jsx-no-undef": "error",
118
+ "@eslint-react/jsx-shorthand-boolean": "warn",
119
+ "@eslint-react/jsx-shorthand-fragment": "warn",
120
+ "@eslint-react/jsx-uses-react": "warn",
121
+ "@eslint-react/jsx-uses-vars": "warn",
122
+ "@eslint-react/no-access-state-in-setstate": "error",
123
+ "@eslint-react/no-array-index-key": "warn",
124
+ "@eslint-react/no-children-count": "warn",
125
+ "@eslint-react/no-children-for-each": "warn",
126
+ "@eslint-react/no-children-map": "warn",
127
+ "@eslint-react/no-children-only": "warn",
128
+ "@eslint-react/no-children-prop": "warn",
129
+ "@eslint-react/no-children-to-array": "warn",
130
+ "@eslint-react/no-class-component": "warn",
131
+ "@eslint-react/no-clone-element": "warn",
132
+ "@eslint-react/no-comment-textnodes": "warn",
133
+ "@eslint-react/no-component-will-mount": "error",
134
+ "@eslint-react/no-component-will-receive-props": "error",
135
+ "@eslint-react/no-component-will-update": "error",
136
+ "@eslint-react/no-context-provider": "warn",
137
+ "@eslint-react/no-create-ref": "error",
138
+ "@eslint-react/no-default-props": "error",
139
+ "@eslint-react/no-direct-mutation-state": "error",
140
+ "@eslint-react/no-duplicate-key": "error",
141
+ "@eslint-react/no-forward-ref": "warn",
142
+ "@eslint-react/no-implicit-key": "warn",
143
+ "@eslint-react/no-missing-component-display-name": "warn",
144
+ "@eslint-react/no-missing-context-display-name": "warn",
145
+ "@eslint-react/no-missing-key": "error",
146
+ "@eslint-react/no-misused-capture-owner-stack": "error",
147
+ "@eslint-react/no-nested-component-definitions": "error",
148
+ "@eslint-react/no-nested-lazy-component-declarations": "error",
149
+ "@eslint-react/no-prop-types": "error",
150
+ "@eslint-react/no-redundant-should-component-update": "error",
151
+ "@eslint-react/no-set-state-in-component-did-mount": "warn",
152
+ "@eslint-react/no-set-state-in-component-did-update": "warn",
153
+ "@eslint-react/no-set-state-in-component-will-update": "warn",
154
+ "@eslint-react/no-string-refs": "error",
155
+ "@eslint-react/no-unnecessary-key": "warn",
156
+ "@eslint-react/no-unnecessary-use-callback": "warn",
157
+ "@eslint-react/no-unnecessary-use-memo": "warn",
158
+ "@eslint-react/no-unnecessary-use-prefix": "warn",
159
+ "@eslint-react/no-unsafe-component-will-mount": "warn",
160
+ "@eslint-react/no-unsafe-component-will-receive-props": "warn",
161
+ "@eslint-react/no-unsafe-component-will-update": "warn",
162
+ "@eslint-react/no-unstable-context-value": "warn",
163
+ "@eslint-react/no-unstable-default-props": "warn",
164
+ "@eslint-react/no-unused-class-component-members": "warn",
165
+ "@eslint-react/no-unused-state": "warn",
166
+ "@eslint-react/no-use-context": "warn",
167
+ "@eslint-react/no-useless-forward-ref": "warn",
168
+ "@eslint-react/no-useless-fragment": "warn",
169
+ "@eslint-react/prefer-destructuring-assignment": "warn",
170
+ "@eslint-react/prefer-namespace-import": "warn",
171
+ "@eslint-react/prefer-use-state-lazy-initialization": "warn",
172
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
173
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
174
+ "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
175
+ "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
176
+ "@eslint-react/dom/no-find-dom-node": "error",
177
+ "@eslint-react/dom/no-flush-sync": "error",
178
+ "@eslint-react/dom/no-hydrate": "error",
179
+ "@eslint-react/dom/no-missing-button-type": "warn",
180
+ "@eslint-react/dom/no-missing-iframe-sandbox": "warn",
181
+ "@eslint-react/dom/no-namespace": "error",
182
+ "@eslint-react/dom/no-render": "error",
183
+ "@eslint-react/dom/no-render-return-value": "error",
184
+ "@eslint-react/dom/no-script-url": "warn",
185
+ "@eslint-react/dom/no-unknown-property": "warn",
186
+ "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
187
+ "@eslint-react/dom/no-unsafe-target-blank": "warn",
188
+ "@eslint-react/dom/no-use-form-state": "error",
189
+ "@eslint-react/dom/no-void-elements-with-children": "error",
190
+ "@eslint-react/web-api/no-leaked-event-listener": "warn",
191
+ "@eslint-react/web-api/no-leaked-interval": "warn",
192
+ "@eslint-react/web-api/no-leaked-resize-observer": "warn",
193
+ "@eslint-react/web-api/no-leaked-timeout": "warn",
194
+ "@eslint-react/naming-convention/component-name": "warn",
195
+ "@eslint-react/naming-convention/context-name": "warn",
196
+ "@eslint-react/naming-convention/filename": "warn",
197
+ "@eslint-react/naming-convention/filename-extension": "warn",
198
+ "@eslint-react/naming-convention/use-state": "warn"
220
199
  };
221
- var settings3 = {
222
- ...settings
200
+ const plugins$5 = {
201
+ ...plugins$6,
202
+ ...plugins$7,
203
+ "@eslint-react/debug": reactDebug,
204
+ "@eslint-react/hooks-extra": reactHooksExtra,
205
+ "@eslint-react/naming-convention": reactNamingConvention,
206
+ "@eslint-react/web-api": reactWebApi
223
207
  };
208
+ const settings$4 = { ...settings$6 };
224
209
 
225
- // src/configs/debug.ts
210
+ //#endregion
211
+ //#region src/configs/debug.ts
226
212
  var debug_exports = {};
227
213
  __export(debug_exports, {
228
- name: () => name5,
229
- plugins: () => plugins4,
230
- rules: () => rules4
214
+ name: () => name$10,
215
+ plugins: () => plugins$4,
216
+ rules: () => rules$10
231
217
  });
232
- var name5 = "@eslint-react/debug";
233
- var rules4 = {
234
- "@eslint-react/debug/class-component": "warn",
235
- "@eslint-react/debug/function-component": "warn",
236
- "@eslint-react/debug/hook": "warn",
237
- "@eslint-react/debug/is-from-react": "warn",
238
- "@eslint-react/debug/jsx": "warn"
239
- };
240
- var plugins4 = {
241
- "@eslint-react/debug": reactDebug
218
+ const name$10 = "@eslint-react/debug";
219
+ const rules$10 = {
220
+ "@eslint-react/debug/class-component": "warn",
221
+ "@eslint-react/debug/function-component": "warn",
222
+ "@eslint-react/debug/hook": "warn",
223
+ "@eslint-react/debug/is-from-react": "warn",
224
+ "@eslint-react/debug/jsx": "warn"
242
225
  };
226
+ const plugins$4 = { "@eslint-react/debug": reactDebug };
227
+
228
+ //#endregion
229
+ //#region src/configs/disable-conflict-eslint-plugin-react.ts
230
+ var disable_conflict_eslint_plugin_react_exports = {};
231
+ __export(disable_conflict_eslint_plugin_react_exports, {
232
+ name: () => name$9,
233
+ rules: () => rules$12
234
+ });
235
+ const conflictingRules = [
236
+ "button-has-type",
237
+ "destructuring-assignment",
238
+ "display-name",
239
+ "forbid-prop-types",
240
+ "forward-ref-uses-ref",
241
+ "hook-use-state",
242
+ "iframe-missing-sandbox",
243
+ "jsx-boolean-value",
244
+ "jsx-filename-extension",
245
+ "jsx-fragments",
246
+ "jsx-key",
247
+ "jsx-no-comment-textnodes",
248
+ "jsx-no-constructed-context-values",
249
+ "jsx-no-duplicate-props",
250
+ "jsx-no-leaked-render",
251
+ "jsx-no-script-url",
252
+ "jsx-no-target-blank",
253
+ "jsx-no-undef",
254
+ "jsx-no-useless-fragment",
255
+ "jsx-pascal-case",
256
+ "jsx-uses-react",
257
+ "jsx-uses-vars",
258
+ "no-access-state-in-setstate",
259
+ "no-array-index-key",
260
+ "no-children-prop",
261
+ "no-danger",
262
+ "no-danger-with-children",
263
+ "no-deprecated",
264
+ "no-did-mount-set-state",
265
+ "no-did-update-set-state",
266
+ "no-direct-mutation-state",
267
+ "no-find-dom-node",
268
+ "no-namespace",
269
+ "no-object-type-as-default-prop",
270
+ "no-redundant-should-component-update",
271
+ "no-render-return-value",
272
+ "no-string-refs",
273
+ "no-unknown-property",
274
+ "no-unsafe",
275
+ "no-unstable-nested-components",
276
+ "no-unused-class-component-members",
277
+ "no-unused-state",
278
+ "no-will-update-set-state",
279
+ "prefer-read-only-props",
280
+ "prop-types",
281
+ "void-dom-elements-no-children"
282
+ ];
283
+ const name$9 = "@eslint-react/disable-conflict-eslint-plugin-react";
284
+ const rules$12 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
243
285
 
244
- // src/configs/disable-debug.ts
286
+ //#endregion
287
+ //#region src/configs/disable-debug.ts
245
288
  var disable_debug_exports = {};
246
289
  __export(disable_debug_exports, {
247
- name: () => name6,
248
- rules: () => rules5
290
+ name: () => name$8,
291
+ rules: () => rules$11
249
292
  });
250
- var name6 = "@eslint-react/disable-debug";
251
- var rules5 = Object.fromEntries(Object.entries(rules4).map(([rule]) => [rule, "off"]));
293
+ const name$8 = "@eslint-react/disable-debug";
294
+ const rules$11 = Object.fromEntries(Object.entries(rules$10).map(([rule]) => [rule, "off"]));
252
295
 
253
- // src/configs/disable-dom.ts
296
+ //#endregion
297
+ //#region src/configs/disable-dom.ts
254
298
  var disable_dom_exports = {};
255
299
  __export(disable_dom_exports, {
256
- name: () => name7,
257
- rules: () => rules6
300
+ name: () => name$7,
301
+ rules: () => rules$9
258
302
  });
259
- var name7 = "@eslint-react/disable-dom";
260
- var rules6 = Object.fromEntries(Object.entries(rules).map(([key]) => [key, "off"]));
303
+ const name$7 = "@eslint-react/disable-dom";
304
+ const rules$9 = Object.fromEntries(Object.entries(rules$8).map(([key]) => [key, "off"]));
261
305
 
262
- // src/configs/disable-type-checked.ts
306
+ //#endregion
307
+ //#region src/configs/disable-type-checked.ts
263
308
  var disable_type_checked_exports = {};
264
309
  __export(disable_type_checked_exports, {
265
- name: () => name8,
266
- rules: () => rules7
310
+ name: () => name$6,
311
+ rules: () => rules$4
267
312
  });
268
- var name8 = "@eslint-react/disable-type-checked";
269
- var rules7 = {
270
- "@eslint-react/no-leaked-conditional-rendering": "off",
271
- "@eslint-react/prefer-read-only-props": "off"
313
+ const name$6 = "@eslint-react/disable-type-checked";
314
+ const rules$4 = {
315
+ "@eslint-react/no-leaked-conditional-rendering": "off",
316
+ "@eslint-react/no-unused-props": "off",
317
+ "@eslint-react/prefer-read-only-props": "off"
272
318
  };
273
319
 
274
- // src/configs/disable-web-api.ts
320
+ //#endregion
321
+ //#region src/configs/web-api.ts
322
+ const rules$6 = {
323
+ "@eslint-react/web-api/no-leaked-event-listener": "warn",
324
+ "@eslint-react/web-api/no-leaked-interval": "warn",
325
+ "@eslint-react/web-api/no-leaked-resize-observer": "warn",
326
+ "@eslint-react/web-api/no-leaked-timeout": "warn"
327
+ };
328
+ const plugins$3 = { "@eslint-react/web-api": reactWebApi };
329
+ const settings$3 = { ...settings$6 };
330
+
331
+ //#endregion
332
+ //#region src/configs/disable-web-api.ts
275
333
  var disable_web_api_exports = {};
276
334
  __export(disable_web_api_exports, {
277
- name: () => name9,
278
- rules: () => rules9
335
+ name: () => name$5,
336
+ rules: () => rules$7
279
337
  });
280
- var rules8 = {
281
- "@eslint-react/web-api/no-leaked-event-listener": "warn",
282
- "@eslint-react/web-api/no-leaked-interval": "warn",
283
- "@eslint-react/web-api/no-leaked-resize-observer": "warn",
284
- "@eslint-react/web-api/no-leaked-timeout": "warn"
285
- };
286
- var plugins5 = {
287
- "@eslint-react/web-api": reactWebApi
288
- };
338
+ const name$5 = "@eslint-react/disable-web-api";
339
+ const rules$7 = Object.fromEntries(Object.entries(rules$6).map(([key]) => [key, "off"]));
289
340
 
290
- // src/configs/disable-web-api.ts
291
- var name9 = "@eslint-react/disable-web-api";
292
- var rules9 = Object.fromEntries(Object.entries(rules8).map(([key]) => [key, "off"]));
293
-
294
- // src/configs/off.ts
341
+ //#endregion
342
+ //#region src/configs/off.ts
295
343
  var off_exports = {};
296
344
  __export(off_exports, {
297
- name: () => name10,
298
- rules: () => rules10
345
+ name: () => name$4,
346
+ rules: () => rules$5
299
347
  });
300
- var name10 = "@eslint-react/off";
301
- var rules10 = {
302
- ...Object.fromEntries(Object.entries(rules3).map(([key]) => [key, "off"])),
303
- ...rules7
348
+ const name$4 = "@eslint-react/off";
349
+ const rules$5 = {
350
+ ...Object.fromEntries(Object.entries(rules$3).map(([key]) => [key, "off"])),
351
+ ...rules$4
304
352
  };
305
353
 
306
- // src/configs/recommended.ts
354
+ //#endregion
355
+ //#region src/configs/recommended.ts
307
356
  var recommended_exports = {};
308
357
  __export(recommended_exports, {
309
- name: () => name11,
310
- plugins: () => plugins6,
311
- rules: () => rules11,
312
- settings: () => settings5
358
+ name: () => name$3,
359
+ plugins: () => plugins$2,
360
+ rules: () => rules$2,
361
+ settings: () => settings$2
313
362
  });
314
- var name11 = "@eslint-react/recommended";
315
- var rules11 = {
316
- ...rules2,
317
- ...rules,
318
- ...rules8,
319
- "@eslint-react/naming-convention/context-name": "warn"
320
- // "@eslint-react/naming-convention/use-state": "warn",
321
- };
322
- var plugins6 = {
323
- ...plugins2,
324
- ...plugins,
325
- ...plugins5,
326
- "@eslint-react/debug": reactDebug,
327
- "@eslint-react/naming-convention": reactNamingConvention
363
+ const name$3 = "@eslint-react/recommended";
364
+ const rules$2 = {
365
+ ...rules$13,
366
+ ...rules$8,
367
+ ...rules$6,
368
+ "@eslint-react/naming-convention/context-name": "warn"
328
369
  };
329
- var settings5 = {
330
- ...settings
370
+ const plugins$2 = {
371
+ ...plugins$6,
372
+ ...plugins$7,
373
+ ...plugins$3,
374
+ "@eslint-react/debug": reactDebug,
375
+ "@eslint-react/hooks-extra": reactHooksExtra,
376
+ "@eslint-react/naming-convention": reactNamingConvention
331
377
  };
378
+ const settings$2 = { ...settings$6 };
332
379
 
333
- // src/configs/recommended-type-checked.ts
334
- var recommended_type_checked_exports = {};
335
- __export(recommended_type_checked_exports, {
336
- name: () => name13,
337
- plugins: () => plugins8,
338
- rules: () => rules13,
339
- settings: () => settings7
340
- });
341
-
342
- // src/configs/recommended-typescript.ts
380
+ //#endregion
381
+ //#region src/configs/recommended-typescript.ts
343
382
  var recommended_typescript_exports = {};
344
383
  __export(recommended_typescript_exports, {
345
- name: () => name12,
346
- plugins: () => plugins7,
347
- rules: () => rules12,
348
- settings: () => settings6
384
+ name: () => name$2,
385
+ plugins: () => plugins$1,
386
+ rules: () => rules$1,
387
+ settings: () => settings$1
349
388
  });
350
- var name12 = "@eslint-react/recommended-typescript";
351
- var rules12 = {
352
- ...rules11,
353
- "@eslint-react/dom/no-unknown-property": "off",
354
- "@eslint-react/jsx-no-duplicate-props": "off",
355
- "@eslint-react/jsx-uses-react": "off",
356
- "@eslint-react/jsx-uses-vars": "off"
357
- };
358
- var plugins7 = {
359
- ...plugins6
360
- };
361
- var settings6 = {
362
- ...settings5
389
+ const name$2 = "@eslint-react/recommended-typescript";
390
+ const rules$1 = {
391
+ ...rules$2,
392
+ "@eslint-react/dom/no-string-style-prop": "off",
393
+ "@eslint-react/dom/no-unknown-property": "off",
394
+ "@eslint-react/jsx-no-duplicate-props": "off",
395
+ "@eslint-react/jsx-uses-react": "off",
396
+ "@eslint-react/jsx-uses-vars": "off"
363
397
  };
398
+ const plugins$1 = { ...plugins$2 };
399
+ const settings$1 = { ...settings$2 };
364
400
 
365
- // src/configs/recommended-type-checked.ts
366
- var name13 = "@eslint-react/recommended-type-checked";
367
- var rules13 = {
368
- ...rules12,
369
- "@eslint-react/no-leaked-conditional-rendering": "warn"
370
- // "@eslint-react/prefer-read-only-props": "warn",
371
- };
372
- var plugins8 = {
373
- ...plugins7
374
- };
375
- var settings7 = {
376
- ...settings6
401
+ //#endregion
402
+ //#region src/configs/recommended-type-checked.ts
403
+ var recommended_type_checked_exports = {};
404
+ __export(recommended_type_checked_exports, {
405
+ name: () => name$1,
406
+ plugins: () => plugins,
407
+ rules: () => rules,
408
+ settings: () => settings
409
+ });
410
+ const name$1 = "@eslint-react/recommended-type-checked";
411
+ const rules = {
412
+ ...rules$1,
413
+ "@eslint-react/no-leaked-conditional-rendering": "warn",
414
+ "@eslint-react/no-unused-props": "warn"
377
415
  };
416
+ const plugins = { ...plugins$1 };
417
+ const settings = { ...settings$1 };
378
418
 
379
- // src/utils/type-of.ts
419
+ //#endregion
420
+ //#region src/utils/type-of.ts
421
+ /**
422
+ * This is an enhanced version of the typeof operator to check the type of more complex values.
423
+ * In this case we just mind about arrays and objects. We can add more on demand.
424
+ * @param t the value to be checked
425
+ * @returns the type of the value
426
+ */
380
427
  function typeOf(t) {
381
- return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
428
+ return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
382
429
  }
383
430
 
384
- // src/utils/transform-keys.ts
431
+ //#endregion
432
+ //#region src/utils/transform-keys.ts
433
+ /**
434
+ * This function is used to shallowly transform the keys of an object.
435
+ * It will only be transformed at runtime, so it's not type safe.
436
+ * @param obj the object to transform.
437
+ * @param transform the function to transform the keys from string to string.
438
+ * @returns the transformed object.
439
+ * @example transformKeys({ 'foo-bar': { 'fizz-buzz': true } }, camelCase)
440
+ * // { fooBar: { 'fizz-buzz': true } }
441
+ */
385
442
  function transformKeys(obj, transform) {
386
- if (typeOf(obj) !== "object") {
387
- return obj;
388
- }
389
- const res = {};
390
- for (const key in obj) {
391
- res[transform(key)] = obj[key];
392
- }
393
- return res;
443
+ if (typeOf(obj) !== "object") return obj;
444
+ const res = {};
445
+ for (const key in obj) res[transform(key)] = obj[key];
446
+ return res;
394
447
  }
395
448
 
396
- // src/utils/pad-keys-left.ts
449
+ //#endregion
450
+ //#region src/utils/pad-keys-left.ts
397
451
  function padKeysLeft(obj, left) {
398
- return transformKeys(obj, (key) => `${left}${key}`);
452
+ return transformKeys(obj, (key) => `${left}${key}`);
399
453
  }
400
454
 
401
- // src/index.ts
402
- function toLegacyConfig({ rules: rules14 }) {
403
- return {
404
- plugins: ["@eslint-react"],
405
- rules: rules14
406
- };
455
+ //#endregion
456
+ //#region src/index.ts
457
+ function toLegacyConfig({ rules: rules$14 }) {
458
+ return {
459
+ plugins: ["@eslint-react"],
460
+ rules: rules$14
461
+ };
407
462
  }
408
- var index_default = {
409
- meta: {
410
- name,
411
- version
412
- },
413
- configs: {
414
- ["all"]: all_exports,
415
- ["all-legacy"]: toLegacyConfig(all_exports),
416
- ["debug"]: debug_exports,
417
- ["debug-legacy"]: toLegacyConfig(debug_exports),
418
- ["disable-debug"]: disable_debug_exports,
419
- ["disable-debug-legacy"]: toLegacyConfig(disable_debug_exports),
420
- ["disable-dom"]: disable_dom_exports,
421
- ["disable-dom-legacy"]: toLegacyConfig(disable_dom_exports),
422
- ["disable-type-checked"]: disable_type_checked_exports,
423
- ["disable-type-checked-legacy"]: toLegacyConfig(disable_type_checked_exports),
424
- ["disable-web-api"]: disable_web_api_exports,
425
- ["disable-web-api-legacy"]: toLegacyConfig(disable_web_api_exports),
426
- ["dom"]: dom_exports,
427
- ["dom-legacy"]: toLegacyConfig(dom_exports),
428
- ["off"]: off_exports,
429
- ["off-legacy"]: toLegacyConfig(off_exports),
430
- ["recommended"]: recommended_exports,
431
- ["recommended-legacy"]: toLegacyConfig(recommended_exports),
432
- ["recommended-type-checked"]: recommended_type_checked_exports,
433
- ["recommended-type-checked-legacy"]: toLegacyConfig(recommended_type_checked_exports),
434
- ["recommended-typescript"]: recommended_typescript_exports,
435
- ["recommended-typescript-legacy"]: toLegacyConfig(recommended_typescript_exports),
436
- ["x"]: x_exports,
437
- ["x-legacy"]: toLegacyConfig(x_exports)
438
- },
439
- rules: {
440
- ...react.rules,
441
- ...padKeysLeft(reactDom.rules, "dom/"),
442
- ...padKeysLeft(reactWebApi.rules, "web-api/"),
443
- ...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
444
- ...padKeysLeft(reactDebug.rules, "debug/")
445
- }
463
+ const plugin = {
464
+ meta: {
465
+ name,
466
+ version
467
+ },
468
+ rules: {
469
+ ...react.rules,
470
+ ...padKeysLeft(reactDom.rules, "dom/"),
471
+ ...padKeysLeft(reactWebApi.rules, "web-api/"),
472
+ ...padKeysLeft(reactHooksExtra.rules, "hooks-extra/"),
473
+ ...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
474
+ ...padKeysLeft(reactDebug.rules, "debug/")
475
+ }
476
+ };
477
+ var src_default = {
478
+ ...plugin,
479
+ configs: {
480
+ ["all"]: all_exports,
481
+ ["all-legacy"]: toLegacyConfig(all_exports),
482
+ ["debug"]: debug_exports,
483
+ ["debug-legacy"]: toLegacyConfig(debug_exports),
484
+ ["disable-conflict-eslint-plugin-react"]: disable_conflict_eslint_plugin_react_exports,
485
+ ["disable-conflict-eslint-plugin-react-legacy"]: toLegacyConfig(disable_conflict_eslint_plugin_react_exports),
486
+ ["disable-debug"]: disable_debug_exports,
487
+ ["disable-debug-legacy"]: toLegacyConfig(disable_debug_exports),
488
+ ["disable-dom"]: disable_dom_exports,
489
+ ["disable-dom-legacy"]: toLegacyConfig(disable_dom_exports),
490
+ ["disable-type-checked"]: disable_type_checked_exports,
491
+ ["disable-type-checked-legacy"]: toLegacyConfig(disable_type_checked_exports),
492
+ ["disable-web-api"]: disable_web_api_exports,
493
+ ["disable-web-api-legacy"]: toLegacyConfig(disable_web_api_exports),
494
+ ["dom"]: dom_exports,
495
+ ["dom-legacy"]: toLegacyConfig(dom_exports),
496
+ ["off"]: off_exports,
497
+ ["off-legacy"]: toLegacyConfig(off_exports),
498
+ ["recommended"]: recommended_exports,
499
+ ["recommended-legacy"]: toLegacyConfig(recommended_exports),
500
+ ["recommended-type-checked"]: recommended_type_checked_exports,
501
+ ["recommended-type-checked-legacy"]: toLegacyConfig(recommended_type_checked_exports),
502
+ ["recommended-typescript"]: recommended_typescript_exports,
503
+ ["recommended-typescript-legacy"]: toLegacyConfig(recommended_typescript_exports),
504
+ ["x"]: x_exports,
505
+ ["x-legacy"]: toLegacyConfig(x_exports)
506
+ }
446
507
  };
447
508
 
448
- export { index_default as default };
509
+ //#endregion
510
+ export { src_default as default };