@create-node-app/eslint-config-react 0.2.0 → 0.2.1
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 +67 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<h1>📐 <code>@create-node-app/eslint-config-react</code></h1>
|
|
4
|
+
|
|
5
|
+
<p><strong>React ESLint configuration for Create Awesome Node App projects.</strong><br/>
|
|
6
|
+
Extends the TypeScript config with React & React Hooks recommended rules.</p>
|
|
7
|
+
|
|
8
|
+
[![npm][npmversion]][npmurl]
|
|
9
|
+
[![Downloads][npmdownloads]][npmurl]
|
|
10
|
+
[![License: MIT][licensebadge]][licenseurl]
|
|
11
|
+
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install --save-dev @create-node-app/eslint-config-react
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Requires **ESLint ^9** and **TypeScript ^5**.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
In your `eslint.config.*` or `.eslintrc.*`:
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"extends": ["@create-node-app/eslint-config-react"]
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## What's Included
|
|
39
|
+
|
|
40
|
+
This config extends `@create-node-app/eslint-config-ts` and layers on:
|
|
41
|
+
|
|
42
|
+
- **`plugin:react/recommended`** — React best practices
|
|
43
|
+
- **`plugin:react-hooks/recommended`** — Rules of Hooks enforcement
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Inheritance Chain
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
@create-node-app/eslint-config (base)
|
|
51
|
+
└── @create-node-app/eslint-config-ts
|
|
52
|
+
└── @create-node-app/eslint-config-react
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## License
|
|
58
|
+
|
|
59
|
+
MIT © [Create Node App Contributors](https://github.com/Create-Node-App/create-node-app/graphs/contributors)
|
|
60
|
+
|
|
61
|
+
<!-- Reference links -->
|
|
62
|
+
|
|
63
|
+
[npmversion]: https://img.shields.io/npm/v/@create-node-app/eslint-config-react.svg?style=flat-square&color=cb3837
|
|
64
|
+
[npmdownloads]: https://img.shields.io/npm/dm/@create-node-app/eslint-config-react.svg?style=flat-square&color=cb3837
|
|
65
|
+
[licensebadge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square
|
|
66
|
+
[npmurl]: https://www.npmjs.com/package/@create-node-app/eslint-config-react
|
|
67
|
+
[licenseurl]: https://github.com/Create-Node-App/create-node-app/blob/main/LICENSE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@create-node-app/eslint-config-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"eslint-config-react-hooks": "^1.0.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"typescript": "^
|
|
18
|
+
"typescript": "^6.0.3"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public",
|