@xylabs/eslint-config-react-flat 7.13.13 → 7.13.14
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/package.json +4 -4
- package/README.body.md +0 -71
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/eslint-config-react-flat",
|
|
3
|
-
"version": "7.13.
|
|
3
|
+
"version": "7.13.14",
|
|
4
4
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xylabs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@typescript-eslint/parser": "^8.59.2",
|
|
39
|
-
"@xylabs/eslint-config-flat": "~7.13.
|
|
39
|
+
"@xylabs/eslint-config-flat": "~7.13.14",
|
|
40
40
|
"eslint-plugin-react-dom": "^5.7.3",
|
|
41
41
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
42
42
|
"eslint-plugin-react-naming-convention": "^5.7.3",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@testing-library/dom": "^10.4.1",
|
|
52
52
|
"@types/node": "^25.6.0",
|
|
53
53
|
"@vitest/coverage-v8": "~4.1.5",
|
|
54
|
-
"@xylabs/toolchain": "~7.13.
|
|
55
|
-
"@xylabs/tsconfig": "~7.13.
|
|
54
|
+
"@xylabs/toolchain": "~7.13.14",
|
|
55
|
+
"@xylabs/tsconfig": "~7.13.14",
|
|
56
56
|
"acorn": "^8.16.0",
|
|
57
57
|
"cosmiconfig": "~9.0.1",
|
|
58
58
|
"eslint": "^10.3.0",
|
package/README.body.md
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
## Install
|
|
2
|
-
|
|
3
|
-
Using npm:
|
|
4
|
-
|
|
5
|
-
```sh
|
|
6
|
-
npm install -D {{name}}
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
Using yarn:
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
yarn add -D {{name}}
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Using pnpm:
|
|
16
|
-
|
|
17
|
-
```sh
|
|
18
|
-
pnpm add -D {{name}}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Using bun:
|
|
22
|
-
|
|
23
|
-
```sh
|
|
24
|
-
bun add -D {{name}}
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
Use this config in your `eslint.config.ts`:
|
|
30
|
-
|
|
31
|
-
```ts
|
|
32
|
-
import type { Linter } from 'eslint'
|
|
33
|
-
|
|
34
|
-
import { config } from '@xylabs/eslint-config-react-flat'
|
|
35
|
-
|
|
36
|
-
const eslintConfig: Linter.Config[] = [
|
|
37
|
-
...config,
|
|
38
|
-
]
|
|
39
|
-
|
|
40
|
-
export default eslintConfig
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Extending with custom rules
|
|
44
|
-
|
|
45
|
-
```ts
|
|
46
|
-
import type { Linter } from 'eslint'
|
|
47
|
-
|
|
48
|
-
import { config } from '@xylabs/eslint-config-react-flat'
|
|
49
|
-
|
|
50
|
-
const eslintConfig: Linter.Config[] = [
|
|
51
|
-
...config,
|
|
52
|
-
{
|
|
53
|
-
rules: {
|
|
54
|
-
// your overrides
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
]
|
|
58
|
-
|
|
59
|
-
export default eslintConfig
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## What's included
|
|
63
|
-
|
|
64
|
-
Everything from [`@xylabs/eslint-config-flat`](https://www.npmjs.com/package/@xylabs/eslint-config-flat), plus:
|
|
65
|
-
|
|
66
|
-
- React component and hooks linting via `eslint-plugin-react-x`
|
|
67
|
-
- DOM API validation via `eslint-plugin-react-dom`
|
|
68
|
-
- Enhanced hooks rules via `eslint-plugin-react-hooks-extra`
|
|
69
|
-
- Naming convention enforcement via `eslint-plugin-react-naming-convention`
|
|
70
|
-
- React Refresh validation via `eslint-plugin-react-refresh`
|
|
71
|
-
- Web API best practices via `eslint-plugin-react-web-api`
|