@eslint-react/eslint-plugin 1.22.1-next.3 → 1.22.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 +6 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -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
|
|
3
|
+
"version": "1.22.1",
|
|
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",
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
"./package.json"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@typescript-eslint/scope-manager": "^8.18.
|
|
50
|
-
"@typescript-eslint/type-utils": "^8.18.
|
|
51
|
-
"@typescript-eslint/types": "^8.18.
|
|
52
|
-
"@typescript-eslint/utils": "^8.18.
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"
|
|
56
|
-
"eslint-
|
|
57
|
-
"eslint-plugin-react-hooks-extra": "1.22.1
|
|
58
|
-
"eslint-plugin-react-naming-convention": "1.22.1
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"eslint-plugin-react-
|
|
61
|
-
"eslint-plugin-react-
|
|
49
|
+
"@typescript-eslint/scope-manager": "^8.18.2",
|
|
50
|
+
"@typescript-eslint/type-utils": "^8.18.2",
|
|
51
|
+
"@typescript-eslint/types": "^8.18.2",
|
|
52
|
+
"@typescript-eslint/utils": "^8.18.2",
|
|
53
|
+
"@eslint-react/shared": "1.22.1",
|
|
54
|
+
"@eslint-react/eff": "1.22.1",
|
|
55
|
+
"eslint-plugin-react-debug": "1.22.1",
|
|
56
|
+
"@eslint-react/types": "1.22.1",
|
|
57
|
+
"eslint-plugin-react-hooks-extra": "1.22.1",
|
|
58
|
+
"eslint-plugin-react-naming-convention": "1.22.1",
|
|
59
|
+
"eslint-plugin-react-dom": "1.22.1",
|
|
60
|
+
"eslint-plugin-react-web-api": "1.22.1",
|
|
61
|
+
"eslint-plugin-react-x": "1.22.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"tsup": "^8.3.5",
|