@eslint-react/eslint-plugin 1.22.1-beta.2 → 1.22.1-beta.4
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 +7 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ A series of composable ESLint plugins for libraries and frameworks that use Reac
|
|
|
8
8
|
|
|
9
9
|
- **Universal**: Works seamlessly with any library or framework that uses React.
|
|
10
10
|
- **Maximum Flexibility**: Achieves extensive capabilities with minimal configuration effort.
|
|
11
|
-
- **Advanced Analysis Logic**: Handles complex scenarios and identifies
|
|
11
|
+
- **Advanced Analysis Logic**: Handles complex scenarios and identifies problems that tools like `biome` and `eslint-plugin-react` might miss.
|
|
12
12
|
|
|
13
13
|
## Public packages
|
|
14
14
|
|
|
@@ -38,13 +38,16 @@ npm install --save-dev typescript-eslint @eslint-react/eslint-plugin
|
|
|
38
38
|
// eslint.config.js
|
|
39
39
|
|
|
40
40
|
// @ts-check
|
|
41
|
-
import
|
|
41
|
+
import eslintJs from "@eslint/js";
|
|
42
|
+
import eslintReact from "@eslint-react/eslint-plugin";
|
|
42
43
|
import tseslint from "typescript-eslint";
|
|
43
44
|
|
|
44
45
|
export default tseslint.config({
|
|
45
46
|
files: ["**/*.ts", "**/*.tsx"],
|
|
46
47
|
extends: [
|
|
47
|
-
|
|
48
|
+
eslintJs.configs.recommended,
|
|
49
|
+
tseslint.configs.recommended,
|
|
50
|
+
eslintReact.configs.recommended,
|
|
48
51
|
],
|
|
49
52
|
languageOptions: {
|
|
50
53
|
parser: tseslint.parser,
|
|
@@ -54,6 +57,7 @@ export default tseslint.config({
|
|
|
54
57
|
},
|
|
55
58
|
rules: {
|
|
56
59
|
// Put rules you want to override here
|
|
60
|
+
"@eslint-react/prefer-shorthand-boolean": "warn",
|
|
57
61
|
},
|
|
58
62
|
});
|
|
59
63
|
```
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.22.1-beta.
|
|
3
|
+
"version": "1.22.1-beta.4",
|
|
4
4
|
"description": "The main ESLint plugin that contains all the rules from eslint-plugin-react-[x, dom, web-api, hooks-extra, naming-convention].",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"@typescript-eslint/type-utils": "^8.18.1",
|
|
51
51
|
"@typescript-eslint/types": "^8.18.1",
|
|
52
52
|
"@typescript-eslint/utils": "^8.18.1",
|
|
53
|
-
"@eslint-react/eff": "1.22.1-beta.
|
|
54
|
-
"@eslint-react/types": "1.22.1-beta.
|
|
55
|
-
"eslint-
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-plugin-react-
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"
|
|
61
|
-
"eslint-plugin-react-x": "1.22.1-beta.
|
|
53
|
+
"@eslint-react/eff": "1.22.1-beta.4",
|
|
54
|
+
"@eslint-react/types": "1.22.1-beta.4",
|
|
55
|
+
"@eslint-react/shared": "1.22.1-beta.4",
|
|
56
|
+
"eslint-plugin-react-debug": "1.22.1-beta.4",
|
|
57
|
+
"eslint-plugin-react-dom": "1.22.1-beta.4",
|
|
58
|
+
"eslint-plugin-react-hooks-extra": "1.22.1-beta.4",
|
|
59
|
+
"eslint-plugin-react-web-api": "1.22.1-beta.4",
|
|
60
|
+
"eslint-plugin-react-naming-convention": "1.22.1-beta.4",
|
|
61
|
+
"eslint-plugin-react-x": "1.22.1-beta.4"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"tsup": "^8.3.5",
|