@eslint-react/eslint-plugin 2.0.0-next.6 → 2.0.0-next.61

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,447 +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.6";
12
+ var version = "2.0.0-next.61";
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-no-duplicate-props": "warn",
72
- // "@eslint-react/jsx-no-undef": "error",
73
- "@eslint-react/jsx-uses-react": "warn",
74
- "@eslint-react/jsx-uses-vars": "warn",
75
- "@eslint-react/no-access-state-in-setstate": "error",
76
- "@eslint-react/no-array-index-key": "warn",
77
- "@eslint-react/no-children-count": "warn",
78
- "@eslint-react/no-children-for-each": "warn",
79
- "@eslint-react/no-children-map": "warn",
80
- "@eslint-react/no-children-only": "warn",
81
- // "@eslint-react/no-children-prop": "warn",
82
- "@eslint-react/no-children-to-array": "warn",
83
- // "@eslint-react/no-class-component": "warn",
84
- "@eslint-react/no-clone-element": "warn",
85
- "@eslint-react/no-component-will-mount": "error",
86
- "@eslint-react/no-component-will-receive-props": "error",
87
- "@eslint-react/no-component-will-update": "error",
88
- "@eslint-react/no-context-provider": "warn",
89
- "@eslint-react/no-create-ref": "error",
90
- "@eslint-react/no-default-props": "error",
91
- "@eslint-react/no-direct-mutation-state": "error",
92
- // "@eslint-react/prefer-destructuring-assignment": "warn",
93
- // "@eslint-react/prefer-namespace-import": "warn",
94
- // "@eslint-react/prefer-read-only-props": "error",
95
- "@eslint-react/no-direct-set-state-in-use-effect": "warn",
96
- "@eslint-react/no-duplicate-key": "warn",
97
- "@eslint-react/no-forward-ref": "warn",
98
- "@eslint-react/no-implicit-key": "warn",
99
- // "@eslint-react/no-missing-component-display-name": "warn",
100
- // "@eslint-react/no-missing-context-display-name": "warn",
101
- "@eslint-react/no-missing-key": "error",
102
- // "@eslint-react/no-misused-capture-owner-stack": "error",
103
- "@eslint-react/no-nested-component-definitions": "error",
104
- "@eslint-react/no-nested-lazy-component-declarations": "warn",
105
- "@eslint-react/no-prop-types": "error",
106
- "@eslint-react/no-redundant-should-component-update": "error",
107
- "@eslint-react/no-set-state-in-component-did-mount": "warn",
108
- "@eslint-react/no-set-state-in-component-did-update": "warn",
109
- "@eslint-react/no-set-state-in-component-will-update": "warn",
110
- "@eslint-react/no-string-refs": "error",
111
- "@eslint-react/no-unnecessary-use-prefix": "warn",
112
- "@eslint-react/no-unsafe-component-will-mount": "warn",
113
- "@eslint-react/no-unsafe-component-will-receive-props": "warn",
114
- "@eslint-react/no-unsafe-component-will-update": "warn",
115
- "@eslint-react/no-unstable-context-value": "warn",
116
- "@eslint-react/no-unstable-default-props": "warn",
117
- "@eslint-react/no-unused-class-component-members": "warn",
118
- "@eslint-react/no-unused-state": "warn",
119
- "@eslint-react/no-use-context": "warn",
120
- "@eslint-react/no-useless-forward-ref": "warn",
121
- "@eslint-react/prefer-use-state-lazy-initialization": "warn"
122
- };
123
- var plugins2 = {
124
- "@eslint-react": react
125
- };
126
- var settings2 = {
127
- "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"
128
98
  };
99
+ const plugins$6 = { "@eslint-react": react };
100
+ const settings$5 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
129
101
 
130
- // src/configs/all.ts
131
- var name4 = "@eslint-react/all";
132
- var rules3 = {
133
- "@eslint-react/jsx-no-comment-textnodes": "warn",
134
- "@eslint-react/jsx-no-duplicate-props": "warn",
135
- "@eslint-react/jsx-no-undef": "error",
136
- "@eslint-react/jsx-uses-react": "warn",
137
- "@eslint-react/jsx-uses-vars": "warn",
138
- "@eslint-react/no-access-state-in-setstate": "error",
139
- "@eslint-react/no-array-index-key": "warn",
140
- "@eslint-react/no-children-count": "warn",
141
- "@eslint-react/no-children-for-each": "warn",
142
- "@eslint-react/no-children-map": "warn",
143
- "@eslint-react/no-children-only": "warn",
144
- "@eslint-react/no-children-prop": "warn",
145
- "@eslint-react/no-children-to-array": "warn",
146
- "@eslint-react/no-class-component": "warn",
147
- "@eslint-react/no-clone-element": "warn",
148
- "@eslint-react/no-component-will-mount": "error",
149
- "@eslint-react/no-component-will-receive-props": "error",
150
- "@eslint-react/no-component-will-update": "error",
151
- "@eslint-react/no-context-provider": "warn",
152
- "@eslint-react/no-create-ref": "error",
153
- "@eslint-react/no-default-props": "error",
154
- "@eslint-react/no-direct-mutation-state": "error",
155
- "@eslint-react/no-direct-set-state-in-use-effect": "warn",
156
- "@eslint-react/no-direct-set-state-in-use-layout-effect": "warn",
157
- "@eslint-react/no-duplicate-key": "warn",
158
- "@eslint-react/no-forward-ref": "warn",
159
- "@eslint-react/no-implicit-key": "warn",
160
- "@eslint-react/no-missing-component-display-name": "warn",
161
- "@eslint-react/no-missing-context-display-name": "warn",
162
- "@eslint-react/no-missing-key": "error",
163
- "@eslint-react/no-misused-capture-owner-stack": "error",
164
- "@eslint-react/no-nested-component-definitions": "error",
165
- "@eslint-react/no-nested-lazy-component-declarations": "warn",
166
- "@eslint-react/no-prop-types": "error",
167
- "@eslint-react/no-redundant-should-component-update": "error",
168
- "@eslint-react/no-set-state-in-component-did-mount": "warn",
169
- "@eslint-react/no-set-state-in-component-did-update": "warn",
170
- "@eslint-react/no-set-state-in-component-will-update": "warn",
171
- "@eslint-react/no-string-refs": "error",
172
- "@eslint-react/no-unnecessary-use-callback": "warn",
173
- "@eslint-react/no-unnecessary-use-memo": "warn",
174
- "@eslint-react/no-unnecessary-use-prefix": "warn",
175
- "@eslint-react/no-unsafe-component-will-mount": "warn",
176
- "@eslint-react/no-unsafe-component-will-receive-props": "warn",
177
- "@eslint-react/no-unsafe-component-will-update": "warn",
178
- "@eslint-react/no-unstable-context-value": "warn",
179
- "@eslint-react/no-unstable-default-props": "warn",
180
- "@eslint-react/no-unused-class-component-members": "warn",
181
- "@eslint-react/no-unused-state": "warn",
182
- "@eslint-react/no-use-context": "warn",
183
- "@eslint-react/no-useless-forward-ref": "warn",
184
- "@eslint-react/prefer-destructuring-assignment": "warn",
185
- "@eslint-react/prefer-namespace-import": "warn",
186
- "@eslint-react/prefer-use-state-lazy-initialization": "warn",
187
- "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
188
- "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
189
- "@eslint-react/dom/no-find-dom-node": "error",
190
- "@eslint-react/dom/no-flush-sync": "error",
191
- "@eslint-react/dom/no-hydrate": "error",
192
- "@eslint-react/dom/no-missing-button-type": "warn",
193
- "@eslint-react/dom/no-missing-iframe-sandbox": "warn",
194
- "@eslint-react/dom/no-namespace": "error",
195
- "@eslint-react/dom/no-render": "error",
196
- "@eslint-react/dom/no-render-return-value": "error",
197
- "@eslint-react/dom/no-script-url": "warn",
198
- "@eslint-react/dom/no-unknown-property": "warn",
199
- "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
200
- "@eslint-react/dom/no-unsafe-target-blank": "warn",
201
- "@eslint-react/dom/no-use-form-state": "error",
202
- "@eslint-react/dom/no-void-elements-with-children": "error",
203
- "@eslint-react/web-api/no-leaked-event-listener": "warn",
204
- "@eslint-react/web-api/no-leaked-interval": "warn",
205
- "@eslint-react/web-api/no-leaked-resize-observer": "warn",
206
- "@eslint-react/web-api/no-leaked-timeout": "warn",
207
- "@eslint-react/naming-convention/component-name": "warn",
208
- "@eslint-react/naming-convention/context-name": "warn",
209
- "@eslint-react/naming-convention/filename": "warn",
210
- "@eslint-react/naming-convention/filename-extension": "warn",
211
- "@eslint-react/naming-convention/use-state": "warn"
212
- };
213
- var plugins3 = {
214
- ...plugins2,
215
- ...plugins,
216
- "@eslint-react/debug": reactDebug,
217
- "@eslint-react/naming-convention": reactNamingConvention,
218
- "@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"
219
199
  };
220
- var settings3 = {
221
- ...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
222
207
  };
208
+ const settings$4 = { ...settings$6 };
223
209
 
224
- // src/configs/debug.ts
210
+ //#endregion
211
+ //#region src/configs/debug.ts
225
212
  var debug_exports = {};
226
213
  __export(debug_exports, {
227
- name: () => name5,
228
- plugins: () => plugins4,
229
- rules: () => rules4
214
+ name: () => name$10,
215
+ plugins: () => plugins$4,
216
+ rules: () => rules$10
230
217
  });
231
- var name5 = "@eslint-react/debug";
232
- var rules4 = {
233
- "@eslint-react/debug/class-component": "warn",
234
- "@eslint-react/debug/function-component": "warn",
235
- "@eslint-react/debug/hook": "warn",
236
- "@eslint-react/debug/is-from-react": "warn",
237
- "@eslint-react/debug/jsx": "warn"
238
- };
239
- var plugins4 = {
240
- "@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"
241
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"]));
242
285
 
243
- // src/configs/disable-debug.ts
286
+ //#endregion
287
+ //#region src/configs/disable-debug.ts
244
288
  var disable_debug_exports = {};
245
289
  __export(disable_debug_exports, {
246
- name: () => name6,
247
- rules: () => rules5
290
+ name: () => name$8,
291
+ rules: () => rules$11
248
292
  });
249
- var name6 = "@eslint-react/disable-debug";
250
- 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"]));
251
295
 
252
- // src/configs/disable-dom.ts
296
+ //#endregion
297
+ //#region src/configs/disable-dom.ts
253
298
  var disable_dom_exports = {};
254
299
  __export(disable_dom_exports, {
255
- name: () => name7,
256
- rules: () => rules6
300
+ name: () => name$7,
301
+ rules: () => rules$9
257
302
  });
258
- var name7 = "@eslint-react/disable-dom";
259
- 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"]));
260
305
 
261
- // src/configs/disable-type-checked.ts
306
+ //#endregion
307
+ //#region src/configs/disable-type-checked.ts
262
308
  var disable_type_checked_exports = {};
263
309
  __export(disable_type_checked_exports, {
264
- name: () => name8,
265
- rules: () => rules7
310
+ name: () => name$6,
311
+ rules: () => rules$4
266
312
  });
267
- var name8 = "@eslint-react/disable-type-checked";
268
- var rules7 = {
269
- "@eslint-react/no-leaked-conditional-rendering": "off",
270
- "@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"
271
318
  };
272
319
 
273
- // 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
274
333
  var disable_web_api_exports = {};
275
334
  __export(disable_web_api_exports, {
276
- name: () => name9,
277
- rules: () => rules9
335
+ name: () => name$5,
336
+ rules: () => rules$7
278
337
  });
279
- var rules8 = {
280
- "@eslint-react/web-api/no-leaked-event-listener": "warn",
281
- "@eslint-react/web-api/no-leaked-interval": "warn",
282
- "@eslint-react/web-api/no-leaked-resize-observer": "warn",
283
- "@eslint-react/web-api/no-leaked-timeout": "warn"
284
- };
285
- var plugins5 = {
286
- "@eslint-react/web-api": reactWebApi
287
- };
338
+ const name$5 = "@eslint-react/disable-web-api";
339
+ const rules$7 = Object.fromEntries(Object.entries(rules$6).map(([key]) => [key, "off"]));
288
340
 
289
- // src/configs/disable-web-api.ts
290
- var name9 = "@eslint-react/disable-web-api";
291
- var rules9 = Object.fromEntries(Object.entries(rules8).map(([key]) => [key, "off"]));
292
-
293
- // src/configs/off.ts
341
+ //#endregion
342
+ //#region src/configs/off.ts
294
343
  var off_exports = {};
295
344
  __export(off_exports, {
296
- name: () => name10,
297
- rules: () => rules10
345
+ name: () => name$4,
346
+ rules: () => rules$5
298
347
  });
299
- var name10 = "@eslint-react/off";
300
- var rules10 = {
301
- ...Object.fromEntries(Object.entries(rules3).map(([key]) => [key, "off"])),
302
- ...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
303
352
  };
304
353
 
305
- // src/configs/recommended.ts
354
+ //#endregion
355
+ //#region src/configs/recommended.ts
306
356
  var recommended_exports = {};
307
357
  __export(recommended_exports, {
308
- name: () => name11,
309
- plugins: () => plugins6,
310
- rules: () => rules11,
311
- settings: () => settings5
358
+ name: () => name$3,
359
+ plugins: () => plugins$2,
360
+ rules: () => rules$2,
361
+ settings: () => settings$2
312
362
  });
313
- var name11 = "@eslint-react/recommended";
314
- var rules11 = {
315
- ...rules2,
316
- ...rules,
317
- ...rules8,
318
- "@eslint-react/naming-convention/context-name": "warn"
319
- // "@eslint-react/naming-convention/use-state": "warn",
320
- };
321
- var plugins6 = {
322
- ...plugins2,
323
- ...plugins,
324
- ...plugins5,
325
- "@eslint-react/debug": reactDebug,
326
- "@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"
327
369
  };
328
- var settings5 = {
329
- ...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
330
377
  };
378
+ const settings$2 = { ...settings$6 };
331
379
 
332
- // src/configs/recommended-type-checked.ts
333
- var recommended_type_checked_exports = {};
334
- __export(recommended_type_checked_exports, {
335
- name: () => name13,
336
- plugins: () => plugins8,
337
- rules: () => rules13,
338
- settings: () => settings7
339
- });
340
-
341
- // src/configs/recommended-typescript.ts
380
+ //#endregion
381
+ //#region src/configs/recommended-typescript.ts
342
382
  var recommended_typescript_exports = {};
343
383
  __export(recommended_typescript_exports, {
344
- name: () => name12,
345
- plugins: () => plugins7,
346
- rules: () => rules12,
347
- settings: () => settings6
384
+ name: () => name$2,
385
+ plugins: () => plugins$1,
386
+ rules: () => rules$1,
387
+ settings: () => settings$1
348
388
  });
349
- var name12 = "@eslint-react/recommended-typescript";
350
- var rules12 = {
351
- ...rules11,
352
- "@eslint-react/dom/no-unknown-property": "off",
353
- "@eslint-react/jsx-no-duplicate-props": "off",
354
- "@eslint-react/jsx-uses-react": "off",
355
- "@eslint-react/jsx-uses-vars": "off"
356
- };
357
- var plugins7 = {
358
- ...plugins6
359
- };
360
- var settings6 = {
361
- ...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"
362
397
  };
398
+ const plugins$1 = { ...plugins$2 };
399
+ const settings$1 = { ...settings$2 };
363
400
 
364
- // src/configs/recommended-type-checked.ts
365
- var name13 = "@eslint-react/recommended-type-checked";
366
- var rules13 = {
367
- ...rules12,
368
- "@eslint-react/no-leaked-conditional-rendering": "warn"
369
- // "@eslint-react/prefer-read-only-props": "warn",
370
- };
371
- var plugins8 = {
372
- ...plugins7
373
- };
374
- var settings7 = {
375
- ...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"
376
415
  };
416
+ const plugins = { ...plugins$1 };
417
+ const settings = { ...settings$1 };
377
418
 
378
- // 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
+ */
379
427
  function typeOf(t) {
380
- return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
428
+ return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
381
429
  }
382
430
 
383
- // 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
+ */
384
442
  function transformKeys(obj, transform) {
385
- if (typeOf(obj) !== "object") {
386
- return obj;
387
- }
388
- const res = {};
389
- for (const key in obj) {
390
- res[transform(key)] = obj[key];
391
- }
392
- 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;
393
447
  }
394
448
 
395
- // src/utils/pad-keys-left.ts
449
+ //#endregion
450
+ //#region src/utils/pad-keys-left.ts
396
451
  function padKeysLeft(obj, left) {
397
- return transformKeys(obj, (key) => `${left}${key}`);
452
+ return transformKeys(obj, (key) => `${left}${key}`);
398
453
  }
399
454
 
400
- // src/index.ts
401
- function toLegacyConfig({ rules: rules14 }) {
402
- return {
403
- plugins: ["@eslint-react"],
404
- rules: rules14
405
- };
455
+ //#endregion
456
+ //#region src/index.ts
457
+ function toLegacyConfig({ rules: rules$14 }) {
458
+ return {
459
+ plugins: ["@eslint-react"],
460
+ rules: rules$14
461
+ };
406
462
  }
407
- var index_default = {
408
- meta: {
409
- name,
410
- version
411
- },
412
- configs: {
413
- ["all"]: all_exports,
414
- ["all-legacy"]: toLegacyConfig(all_exports),
415
- ["debug"]: debug_exports,
416
- ["debug-legacy"]: toLegacyConfig(debug_exports),
417
- ["disable-debug"]: disable_debug_exports,
418
- ["disable-debug-legacy"]: toLegacyConfig(disable_debug_exports),
419
- ["disable-dom"]: disable_dom_exports,
420
- ["disable-dom-legacy"]: toLegacyConfig(disable_dom_exports),
421
- ["disable-type-checked"]: disable_type_checked_exports,
422
- ["disable-type-checked-legacy"]: toLegacyConfig(disable_type_checked_exports),
423
- ["disable-web-api"]: disable_web_api_exports,
424
- ["disable-web-api-legacy"]: toLegacyConfig(disable_web_api_exports),
425
- ["dom"]: dom_exports,
426
- ["dom-legacy"]: toLegacyConfig(dom_exports),
427
- ["off"]: off_exports,
428
- ["off-legacy"]: toLegacyConfig(off_exports),
429
- ["recommended"]: recommended_exports,
430
- ["recommended-legacy"]: toLegacyConfig(recommended_exports),
431
- ["recommended-type-checked"]: recommended_type_checked_exports,
432
- ["recommended-type-checked-legacy"]: toLegacyConfig(recommended_type_checked_exports),
433
- ["recommended-typescript"]: recommended_typescript_exports,
434
- ["recommended-typescript-legacy"]: toLegacyConfig(recommended_typescript_exports),
435
- ["x"]: x_exports,
436
- ["x-legacy"]: toLegacyConfig(x_exports)
437
- },
438
- rules: {
439
- ...react.rules,
440
- ...padKeysLeft(reactDom.rules, "dom/"),
441
- ...padKeysLeft(reactWebApi.rules, "web-api/"),
442
- ...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
443
- ...padKeysLeft(reactDebug.rules, "debug/")
444
- }
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
+ }
445
507
  };
446
508
 
447
- export { index_default as default };
509
+ //#endregion
510
+ export { src_default as default };