@eslint-react/eslint-plugin 1.14.1-next.2 → 1.14.2-next.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/README.md +2 -46
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -76,11 +76,10 @@ pnpm add --save-dev @eslint-react/eslint-plugin
|
|
|
76
76
|
|
|
77
77
|
### Flat Config
|
|
78
78
|
|
|
79
|
-
Add the plugin to your `eslint.config.js`:
|
|
80
|
-
|
|
81
79
|
```js
|
|
82
|
-
//
|
|
80
|
+
// eslint.config.js
|
|
83
81
|
|
|
82
|
+
// @ts-check
|
|
84
83
|
import js from "@eslint/js";
|
|
85
84
|
import react from "@eslint-react/eslint-plugin";
|
|
86
85
|
import * as tsParser from "@typescript-eslint/parser";
|
|
@@ -97,29 +96,6 @@ export default [
|
|
|
97
96
|
];
|
|
98
97
|
```
|
|
99
98
|
|
|
100
|
-
### Legacy Config
|
|
101
|
-
|
|
102
|
-
<details>
|
|
103
|
-
<summary>Click to toggle contents</summary>
|
|
104
|
-
|
|
105
|
-
Add the plugin to your `.eslintrc.json`:
|
|
106
|
-
|
|
107
|
-
```json
|
|
108
|
-
{
|
|
109
|
-
"parser": "@typescript-eslint/parser",
|
|
110
|
-
"plugins": ["@eslint-react/eslint-plugin"],
|
|
111
|
-
"extends": ["eslint:recommended"],
|
|
112
|
-
"overrides": [
|
|
113
|
-
{
|
|
114
|
-
"files": ["**/*.{ts,tsx}"],
|
|
115
|
-
"extends": [
|
|
116
|
-
"plugin:@eslint-react/recommended-legacy"
|
|
117
|
-
]
|
|
118
|
-
}
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
99
|
[Full Installation Guide ↗](https://eslint-react.xyz/docs/installation)
|
|
124
100
|
|
|
125
101
|
</details>
|
|
@@ -141,26 +117,6 @@ Add the plugin to your `.eslintrc.json`:
|
|
|
141
117
|
Enable rules that are recommended by ESLint React with additional rules that require type information.\
|
|
142
118
|
_This preset includes the `recommended` preset._
|
|
143
119
|
|
|
144
|
-
### Legacy Config
|
|
145
|
-
|
|
146
|
-
<details>
|
|
147
|
-
<summary>Click to toggle contents</summary>
|
|
148
|
-
|
|
149
|
-
- **core-legacy**\
|
|
150
|
-
Enable rules that are renderer-agnostic.
|
|
151
|
-
- **dom-legacy**\
|
|
152
|
-
Enable rules that are specific to React DOM.
|
|
153
|
-
- **web-api-legacy**\
|
|
154
|
-
Enable rules for interacting with Web APIs.
|
|
155
|
-
- **recommended-legacy**\
|
|
156
|
-
Enable rules that are recommended by ESLint React.\
|
|
157
|
-
_This preset includes the `core-legacy`, `dom-legacy`, and `web-api-legacy` presets._
|
|
158
|
-
- **recommended-type-checked-legacy**\
|
|
159
|
-
Enable rules that are recommended by ESLint React with additional rules that require type information.\
|
|
160
|
-
_This preset includes the `recommended-legacy` preset._
|
|
161
|
-
|
|
162
|
-
</details>
|
|
163
|
-
|
|
164
120
|
[Full Presets List↗](https://eslint-react.xyz/docs/presets)
|
|
165
121
|
|
|
166
122
|
## Rules
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var react__default = /*#__PURE__*/_interopDefault(react);
|
|
|
21
21
|
|
|
22
22
|
// package.json
|
|
23
23
|
var name = "@eslint-react/eslint-plugin";
|
|
24
|
-
var version = "1.14.
|
|
24
|
+
var version = "1.14.2-next.0";
|
|
25
25
|
function transformKeys(obj, transform) {
|
|
26
26
|
if (tools.typeOf(obj) !== "object") return obj;
|
|
27
27
|
const res = {};
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import react from 'eslint-plugin-react-x';
|
|
|
10
10
|
|
|
11
11
|
// package.json
|
|
12
12
|
var name = "@eslint-react/eslint-plugin";
|
|
13
|
-
var version = "1.14.
|
|
13
|
+
var version = "1.14.2-next.0";
|
|
14
14
|
function transformKeys(obj, transform) {
|
|
15
15
|
if (typeOf(obj) !== "object") return obj;
|
|
16
16
|
const res = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2-next.0",
|
|
4
4
|
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"@typescript-eslint/type-utils": "^8.5.0",
|
|
48
48
|
"@typescript-eslint/types": "^8.5.0",
|
|
49
49
|
"@typescript-eslint/utils": "^8.5.0",
|
|
50
|
-
"@eslint-react/shared": "1.14.
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"eslint-
|
|
53
|
-
"
|
|
54
|
-
"eslint-plugin-react-
|
|
55
|
-
"eslint-plugin-react-
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-web-api": "1.14.
|
|
58
|
-
"eslint-plugin-react-x": "1.14.
|
|
50
|
+
"@eslint-react/shared": "1.14.2-next.0",
|
|
51
|
+
"@eslint-react/tools": "1.14.2-next.0",
|
|
52
|
+
"@eslint-react/types": "1.14.2-next.0",
|
|
53
|
+
"eslint-plugin-react-debug": "1.14.2-next.0",
|
|
54
|
+
"eslint-plugin-react-hooks-extra": "1.14.2-next.0",
|
|
55
|
+
"eslint-plugin-react-naming-convention": "1.14.2-next.0",
|
|
56
|
+
"eslint-plugin-react-dom": "1.14.2-next.0",
|
|
57
|
+
"eslint-plugin-react-web-api": "1.14.2-next.0",
|
|
58
|
+
"eslint-plugin-react-x": "1.14.2-next.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"tsup": "^8.2.4"
|