@mikey-pro/eslint-config-react 9.0.7 → 10.0.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/index.js +7 -7
- package/package.json +4 -12
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Modern React ESLint configuration for Mikey Pro
|
|
2
|
-
import { baseConfig } from '../eslint-config/base-config.js';
|
|
2
|
+
import { baseConfig, globalPlugins } from '../eslint-config/base-config.js';
|
|
3
3
|
import { baseOverrides } from '../eslint-config/overrides.js';
|
|
4
4
|
import jsxA11y from 'eslint-plugin-jsx-a11y';
|
|
5
5
|
import react from 'eslint-plugin-react';
|
|
@@ -218,10 +218,8 @@ const reactConfig = {
|
|
|
218
218
|
'react/void-dom-elements-no-children': 'error',
|
|
219
219
|
},
|
|
220
220
|
settings: {
|
|
221
|
-
'import/resolver': {
|
|
222
|
-
|
|
223
|
-
alwaysTryTypes: true,
|
|
224
|
-
},
|
|
221
|
+
'import-x/resolver': {
|
|
222
|
+
node: { extensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs'] },
|
|
225
223
|
},
|
|
226
224
|
react: {
|
|
227
225
|
version: 'detect',
|
|
@@ -257,7 +255,6 @@ export default [
|
|
|
257
255
|
'*.psd',
|
|
258
256
|
'*.ai',
|
|
259
257
|
'*.ase',
|
|
260
|
-
'*.sh',
|
|
261
258
|
'*.bat',
|
|
262
259
|
'*.cmd',
|
|
263
260
|
'package-lock.json',
|
|
@@ -270,6 +267,9 @@ export default [
|
|
|
270
267
|
],
|
|
271
268
|
},
|
|
272
269
|
|
|
270
|
+
// Global plugin registration
|
|
271
|
+
globalPlugins,
|
|
272
|
+
|
|
273
273
|
// Base configuration
|
|
274
274
|
baseConfig,
|
|
275
275
|
|
|
@@ -281,5 +281,5 @@ export default [
|
|
|
281
281
|
];
|
|
282
282
|
|
|
283
283
|
// Export individual components for advanced usage
|
|
284
|
-
export { baseConfig } from '../eslint-config/base-config.js';
|
|
284
|
+
export { baseConfig, globalPlugins } from '../eslint-config/base-config.js';
|
|
285
285
|
export { baseOverrides } from '../eslint-config/overrides.js';
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Mikey Pro ESLint React configuration - Ultimate React coding style guide",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/preset-react": "^7.27.1",
|
|
9
9
|
"@mikey-pro/eslint-config": "file:../eslint-config",
|
|
10
|
-
"eslint-config-react-app-bump": "^1.0.25",
|
|
11
10
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
12
11
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
13
12
|
"eslint-plugin-react": "^7.37.5",
|
|
@@ -27,12 +26,7 @@
|
|
|
27
26
|
"optional": true
|
|
28
27
|
}
|
|
29
28
|
},
|
|
30
|
-
"files": [
|
|
31
|
-
"index.js",
|
|
32
|
-
"flat.js",
|
|
33
|
-
"README.md",
|
|
34
|
-
"LICENSE"
|
|
35
|
-
],
|
|
29
|
+
"files": ["index.js", "flat.js", "README.md", "LICENSE"],
|
|
36
30
|
"homepage": "https://github.com/chiefmikey/mikey-pro#readme",
|
|
37
31
|
"repository": {
|
|
38
32
|
"type": "git",
|
|
@@ -61,11 +55,9 @@
|
|
|
61
55
|
"flat-config"
|
|
62
56
|
],
|
|
63
57
|
"author": "Mikl Wolfe <wolfe@mikl.io> (https://mikl.io)",
|
|
64
|
-
"browserslist": [
|
|
65
|
-
"defaults"
|
|
66
|
-
],
|
|
58
|
+
"browserslist": ["defaults"],
|
|
67
59
|
"engines": {
|
|
68
|
-
"node": ">=20.
|
|
60
|
+
"node": ">=20.19.0",
|
|
69
61
|
"npm": ">=9.0.0",
|
|
70
62
|
"pnpm": ">=8.0.0",
|
|
71
63
|
"yarn": ">=4.0.0"
|