@mikey-pro/eslint-config-react 9.0.6 → 9.0.8
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/README.md +26 -0
- package/index.js +1 -4
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @mikey-pro/eslint-config-react
|
|
2
|
+
|
|
3
|
+
React-specific ESLint configuration extending the core Mikey Pro style guide.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @mikey-pro/eslint-config-react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```javascript
|
|
14
|
+
// eslint.config.js
|
|
15
|
+
export { default } from '@mikey-pro/eslint-config-react';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- React-specific rules and best practices
|
|
21
|
+
- JSX accessibility (a11y) rules
|
|
22
|
+
- React hooks validation
|
|
23
|
+
- Performance optimizations
|
|
24
|
+
- Extends core Mikey Pro configuration
|
|
25
|
+
|
|
26
|
+
See [Mikey Pro](https://github.com/chiefmikey/mikey-pro) for full documentation.
|
package/index.js
CHANGED
|
@@ -219,9 +219,7 @@ const reactConfig = {
|
|
|
219
219
|
},
|
|
220
220
|
settings: {
|
|
221
221
|
'import/resolver': {
|
|
222
|
-
|
|
223
|
-
alwaysTryTypes: true,
|
|
224
|
-
},
|
|
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',
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config-react",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.8",
|
|
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
|
-
"@mikey-pro/eslint-config": "
|
|
9
|
+
"@mikey-pro/eslint-config": "file:../eslint-config",
|
|
10
10
|
"eslint-config-react-app-bump": "^1.0.25",
|
|
11
11
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
12
12
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"eslint-plugin-testing-library": "^7.6.8"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@mikey-pro/eslint-config": "
|
|
20
|
+
"@mikey-pro/eslint-config": "file:../eslint-config"
|
|
21
21
|
},
|
|
22
22
|
"peerDependenciesMeta": {
|
|
23
23
|
"@types/react": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"defaults"
|
|
66
66
|
],
|
|
67
67
|
"engines": {
|
|
68
|
-
"node": ">=
|
|
68
|
+
"node": ">=20.0.0",
|
|
69
69
|
"npm": ">=9.0.0",
|
|
70
70
|
"pnpm": ">=8.0.0",
|
|
71
71
|
"yarn": ">=4.0.0"
|