@eslint-react/eslint-plugin 2.0.0-next.146 → 2.0.0-next.148

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