@eslint-react/eslint-plugin 1.10.0-next.0 → 1.10.0
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 +9 -9
- package/dist/index.mjs +9 -9
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var react__namespace = /*#__PURE__*/_interopNamespace(react);
|
|
|
36
36
|
|
|
37
37
|
// package.json
|
|
38
38
|
var name = "@eslint-react/eslint-plugin";
|
|
39
|
-
var version = "1.10.0
|
|
39
|
+
var version = "1.10.0";
|
|
40
40
|
function transformKeys(obj, transform) {
|
|
41
41
|
if (tools.typeOf(obj) !== "object") return obj;
|
|
42
42
|
const res = {};
|
|
@@ -193,6 +193,14 @@ var disableTypeCheckedPreset = {
|
|
|
193
193
|
"no-leaked-conditional-rendering": "off",
|
|
194
194
|
"prefer-read-only-props": "off"
|
|
195
195
|
};
|
|
196
|
+
var debugPreset = {
|
|
197
|
+
"debug/class-component": "warn",
|
|
198
|
+
"debug/function-component": "warn",
|
|
199
|
+
"debug/react-hooks": "warn"
|
|
200
|
+
};
|
|
201
|
+
var allPresetEntries = tools.entries(allPreset);
|
|
202
|
+
var offPreset = tools.fromEntries(allPresetEntries.map(([key]) => [key, "off"]));
|
|
203
|
+
var offDomPreset = tools.fromEntries(tools.entries(domPreset).map(([key]) => [key, "off"]));
|
|
196
204
|
var corePresetSettings = {
|
|
197
205
|
...shared.DEFAULT_ESLINT_REACT_SETTINGS
|
|
198
206
|
};
|
|
@@ -211,14 +219,6 @@ var domPresetSettings = {
|
|
|
211
219
|
}
|
|
212
220
|
]
|
|
213
221
|
};
|
|
214
|
-
var debugPreset = {
|
|
215
|
-
"debug/class-component": "warn",
|
|
216
|
-
"debug/function-component": "warn",
|
|
217
|
-
"debug/react-hooks": "warn"
|
|
218
|
-
};
|
|
219
|
-
var allPresetEntries = tools.entries(allPreset);
|
|
220
|
-
var offPreset = tools.fromEntries(allPresetEntries.map(([key]) => [key, "off"]));
|
|
221
|
-
var offDomPreset = tools.fromEntries(tools.entries(domPreset).map(([key]) => [key, "off"]));
|
|
222
222
|
var legacyConfigPlugins = ["@eslint-react"];
|
|
223
223
|
var flatConfigPlugins = {
|
|
224
224
|
"@eslint-react": react__namespace,
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import * as react from 'eslint-plugin-react-x';
|
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
12
|
var name = "@eslint-react/eslint-plugin";
|
|
13
|
-
var version = "1.10.0
|
|
13
|
+
var version = "1.10.0";
|
|
14
14
|
function transformKeys(obj, transform) {
|
|
15
15
|
if (typeOf(obj) !== "object") return obj;
|
|
16
16
|
const res = {};
|
|
@@ -167,6 +167,14 @@ var disableTypeCheckedPreset = {
|
|
|
167
167
|
"no-leaked-conditional-rendering": "off",
|
|
168
168
|
"prefer-read-only-props": "off"
|
|
169
169
|
};
|
|
170
|
+
var debugPreset = {
|
|
171
|
+
"debug/class-component": "warn",
|
|
172
|
+
"debug/function-component": "warn",
|
|
173
|
+
"debug/react-hooks": "warn"
|
|
174
|
+
};
|
|
175
|
+
var allPresetEntries = entries(allPreset);
|
|
176
|
+
var offPreset = fromEntries(allPresetEntries.map(([key]) => [key, "off"]));
|
|
177
|
+
var offDomPreset = fromEntries(entries(domPreset).map(([key]) => [key, "off"]));
|
|
170
178
|
var corePresetSettings = {
|
|
171
179
|
...DEFAULT_ESLINT_REACT_SETTINGS
|
|
172
180
|
};
|
|
@@ -185,14 +193,6 @@ var domPresetSettings = {
|
|
|
185
193
|
}
|
|
186
194
|
]
|
|
187
195
|
};
|
|
188
|
-
var debugPreset = {
|
|
189
|
-
"debug/class-component": "warn",
|
|
190
|
-
"debug/function-component": "warn",
|
|
191
|
-
"debug/react-hooks": "warn"
|
|
192
|
-
};
|
|
193
|
-
var allPresetEntries = entries(allPreset);
|
|
194
|
-
var offPreset = fromEntries(allPresetEntries.map(([key]) => [key, "off"]));
|
|
195
|
-
var offDomPreset = fromEntries(entries(domPreset).map(([key]) => [key, "off"]));
|
|
196
196
|
var legacyConfigPlugins = ["@eslint-react"];
|
|
197
197
|
var flatConfigPlugins = {
|
|
198
198
|
"@eslint-react": react,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.10.0
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"@typescript-eslint/type-utils": "^8.0.1",
|
|
48
48
|
"@typescript-eslint/types": "^8.0.1",
|
|
49
49
|
"@typescript-eslint/utils": "^8.0.1",
|
|
50
|
-
"@eslint-react/shared": "1.10.0
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"eslint-
|
|
53
|
-
"eslint-plugin-react-
|
|
54
|
-
"eslint-plugin-react-hooks-extra": "1.10.0
|
|
55
|
-
"eslint-plugin-react-naming-convention": "1.10.0
|
|
56
|
-
"eslint-plugin-react-x": "1.10.0
|
|
57
|
-
"
|
|
50
|
+
"@eslint-react/shared": "1.10.0",
|
|
51
|
+
"@eslint-react/tools": "1.10.0",
|
|
52
|
+
"@eslint-react/types": "1.10.0",
|
|
53
|
+
"eslint-plugin-react-debug": "1.10.0",
|
|
54
|
+
"eslint-plugin-react-hooks-extra": "1.10.0",
|
|
55
|
+
"eslint-plugin-react-naming-convention": "1.10.0",
|
|
56
|
+
"eslint-plugin-react-x": "1.10.0",
|
|
57
|
+
"eslint-plugin-react-dom": "1.10.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"tsup": "^8.2.4"
|