eslint-plugin-react-x 2.0.0-next.162 → 2.0.0-next.164
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 +20 -17
- package/dist/index.js +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -17,27 +17,30 @@ npm install --save-dev eslint-plugin-react-x
|
|
|
17
17
|
// @ts-check
|
|
18
18
|
import js from "@eslint/js";
|
|
19
19
|
import react from "eslint-plugin-react-x";
|
|
20
|
+
import { defineConfig } from "eslint/config";
|
|
20
21
|
import tseslint from "typescript-eslint";
|
|
21
22
|
|
|
22
|
-
export default
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
export default defineConfig([
|
|
24
|
+
{
|
|
25
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
26
|
+
extends: [
|
|
27
|
+
js.configs.recommended,
|
|
28
|
+
tseslint.configs.recommended,
|
|
29
|
+
react.configs.recommended,
|
|
30
|
+
],
|
|
31
|
+
languageOptions: {
|
|
32
|
+
parser: tseslint.parser,
|
|
33
|
+
parserOptions: {
|
|
34
|
+
projectService: true,
|
|
35
|
+
tsconfigRootDir: import.meta.dirname,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
rules: {
|
|
39
|
+
// Put rules you want to override here
|
|
40
|
+
"react-x/no-class-component": "warn",
|
|
34
41
|
},
|
|
35
42
|
},
|
|
36
|
-
|
|
37
|
-
// Put rules you want to override here
|
|
38
|
-
"react-x/no-class-component": "warn",
|
|
39
|
-
},
|
|
40
|
-
});
|
|
43
|
+
]);
|
|
41
44
|
```
|
|
42
45
|
|
|
43
46
|
## Rules
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.164",
|
|
4
4
|
"description": "A set of composable ESLint rules for for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"./package.json"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
38
|
-
"@typescript-eslint/type-utils": "^8.
|
|
39
|
-
"@typescript-eslint/types": "^8.
|
|
40
|
-
"@typescript-eslint/utils": "^8.
|
|
37
|
+
"@typescript-eslint/scope-manager": "^8.42.0",
|
|
38
|
+
"@typescript-eslint/type-utils": "^8.42.0",
|
|
39
|
+
"@typescript-eslint/types": "^8.42.0",
|
|
40
|
+
"@typescript-eslint/utils": "^8.42.0",
|
|
41
41
|
"compare-versions": "^6.1.1",
|
|
42
42
|
"is-immutable-type": "^5.0.1",
|
|
43
43
|
"string-ts": "^2.2.1",
|
|
44
44
|
"ts-pattern": "^5.8.0",
|
|
45
|
-
"@eslint-react/ast": "2.0.0-next.
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/var": "2.0.0-next.
|
|
45
|
+
"@eslint-react/ast": "2.0.0-next.164",
|
|
46
|
+
"@eslint-react/core": "2.0.0-next.164",
|
|
47
|
+
"@eslint-react/kit": "2.0.0-next.164",
|
|
48
|
+
"@eslint-react/eff": "2.0.0-next.164",
|
|
49
|
+
"@eslint-react/shared": "2.0.0-next.164",
|
|
50
|
+
"@eslint-react/var": "2.0.0-next.164"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^19.1.12",
|