@eslint-react/eslint-plugin 2.0.0-beta.60 → 2.0.0-beta.64
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 +29 -27
- package/dist/index.js +1 -1
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -69,40 +69,42 @@ npm install --save-dev typescript-eslint @eslint-react/eslint-plugin
|
|
|
69
69
|
```js
|
|
70
70
|
// eslint.config.js
|
|
71
71
|
|
|
72
|
-
// @ts-check
|
|
73
72
|
import eslintReact from "@eslint-react/eslint-plugin";
|
|
74
73
|
import eslintJs from "@eslint/js";
|
|
74
|
+
import { defineConfig } from "eslint/config";
|
|
75
75
|
import tseslint from "typescript-eslint";
|
|
76
76
|
|
|
77
|
-
export default
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
77
|
+
export default defineConfig([
|
|
78
|
+
{
|
|
79
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
80
|
+
|
|
81
|
+
// Extend recommended rule sets from:
|
|
82
|
+
// 1. ESLint JS's recommended rules
|
|
83
|
+
// 2. TypeScript ESLint recommended rules
|
|
84
|
+
// 3. ESLint React's recommended-typescript rules
|
|
85
|
+
extends: [
|
|
86
|
+
eslintJs.configs.recommended,
|
|
87
|
+
tseslint.configs.recommended,
|
|
88
|
+
eslintReact.configs["recommended-typescript"],
|
|
89
|
+
],
|
|
90
|
+
|
|
91
|
+
// Configure language/parsing options
|
|
92
|
+
languageOptions: {
|
|
93
|
+
// Use TypeScript ESLint parser for TypeScript files
|
|
94
|
+
parser: tseslint.parser,
|
|
95
|
+
parserOptions: {
|
|
96
|
+
// Enable project service for better TypeScript integration
|
|
97
|
+
projectService: true,
|
|
98
|
+
tsconfigRootDir: import.meta.dirname,
|
|
99
|
+
},
|
|
98
100
|
},
|
|
99
|
-
},
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
// Custom rule overrides (modify rule levels or disable rules)
|
|
103
|
+
rules: {
|
|
104
|
+
"@eslint-react/no-missing-key": "warn",
|
|
105
|
+
},
|
|
104
106
|
},
|
|
105
|
-
|
|
107
|
+
]);
|
|
106
108
|
```
|
|
107
109
|
|
|
108
110
|
[Full Installation Guide ↗](https://eslint-react.xyz/docs/getting-started/typescript)
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.64",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"./package.json"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
41
|
-
"@typescript-eslint/type-utils": "^8.
|
|
42
|
-
"@typescript-eslint/types": "^8.
|
|
43
|
-
"@typescript-eslint/utils": "^8.
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"eslint-
|
|
47
|
-
"eslint-plugin-react-
|
|
48
|
-
"eslint-plugin-react-
|
|
49
|
-
"
|
|
50
|
-
"eslint-plugin-react-
|
|
51
|
-
"eslint-plugin-react-
|
|
52
|
-
"eslint-plugin-react-
|
|
40
|
+
"@typescript-eslint/scope-manager": "^8.42.0",
|
|
41
|
+
"@typescript-eslint/type-utils": "^8.42.0",
|
|
42
|
+
"@typescript-eslint/types": "^8.42.0",
|
|
43
|
+
"@typescript-eslint/utils": "^8.42.0",
|
|
44
|
+
"@eslint-react/eff": "2.0.0-beta.64",
|
|
45
|
+
"@eslint-react/kit": "2.0.0-beta.64",
|
|
46
|
+
"@eslint-react/shared": "2.0.0-beta.64",
|
|
47
|
+
"eslint-plugin-react-debug": "2.0.0-beta.64",
|
|
48
|
+
"eslint-plugin-react-dom": "2.0.0-beta.64",
|
|
49
|
+
"eslint-plugin-react-naming-convention": "2.0.0-beta.64",
|
|
50
|
+
"eslint-plugin-react-web-api": "2.0.0-beta.64",
|
|
51
|
+
"eslint-plugin-react-x": "2.0.0-beta.64",
|
|
52
|
+
"eslint-plugin-react-hooks-extra": "2.0.0-beta.64"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"tsdown": "^0.14.2",
|