@mikey-pro/eslint-config-react 9.0.5 → 9.0.7

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.
Files changed (2) hide show
  1. package/README.md +16 -28
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,38 +1,26 @@
1
- <div width="100%" align="center">
2
- <h1>
3
- <a href="https://github.com/chiefmikey/mikey-pro">
4
- <b>Mikey Pro</b>
5
- </a>
6
- </h1>
7
- </div>
1
+ # @mikey-pro/eslint-config-react
8
2
 
9
- ## **@mikey-pro/eslint-config-react**
3
+ React-specific ESLint configuration extending the core Mikey Pro style guide.
10
4
 
11
- A preset ESLint React configuration
5
+ ## Installation
12
6
 
13
- ## Usage
14
-
15
- ### Install
16
-
17
- ```shell
18
- npm i -D mikey-pro @mikey-pro/eslint-config-react
7
+ ```bash
8
+ npm install @mikey-pro/eslint-config-react
19
9
  ```
20
10
 
21
- ### Configure (Flat ESLint v9+ Recommended)
11
+ ## Usage
22
12
 
23
- ```js
13
+ ```javascript
24
14
  // eslint.config.js
25
- import reactConfig from '@mikey-pro/eslint-config-react/flat';
26
-
27
- export default reactConfig;
15
+ export { default } from '@mikey-pro/eslint-config-react';
28
16
  ```
29
17
 
30
- ### Legacy Configuration (still supported)
18
+ ## Features
31
19
 
32
- ```json
33
- {
34
- "eslintConfig": {
35
- "extends": ["@mikey-pro/eslint-config-react"]
36
- }
37
- }
38
- ```
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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config-react",
3
- "version": "9.0.5",
3
+ "version": "9.0.7",
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.0.1",
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": "^9.0.0"
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": ">=18.0.0",
68
+ "node": ">=20.0.0",
69
69
  "npm": ">=9.0.0",
70
70
  "pnpm": ">=8.0.0",
71
71
  "yarn": ">=4.0.0"