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