eslint-plugin-react-x 1.27.1-next.3 → 1.27.1-next.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 +20 -50
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -12,61 +12,31 @@ npm install --save-dev eslint-plugin-react-x
|
|
|
12
12
|
## Setup
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
//
|
|
15
|
+
// eslint.config.js
|
|
16
16
|
|
|
17
|
+
// @ts-check
|
|
17
18
|
import js from "@eslint/js";
|
|
18
19
|
import reactx from "eslint-plugin-react-x";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"react-x/no-children-count": "warn",
|
|
33
|
-
"react-x/no-children-for-each": "warn",
|
|
34
|
-
"react-x/no-children-map": "warn",
|
|
35
|
-
"react-x/no-children-only": "warn",
|
|
36
|
-
"react-x/no-children-to-array": "warn",
|
|
37
|
-
"react-x/no-clone-element": "warn",
|
|
38
|
-
"react-x/no-comment-textnodes": "warn",
|
|
39
|
-
"react-x/no-component-will-mount": "error",
|
|
40
|
-
"react-x/no-component-will-receive-props": "error",
|
|
41
|
-
"react-x/no-component-will-update": "error",
|
|
42
|
-
"react-x/no-context-provider": "warn",
|
|
43
|
-
"react-x/no-create-ref": "error",
|
|
44
|
-
"react-x/no-default-props": "error",
|
|
45
|
-
"react-x/no-direct-mutation-state": "error",
|
|
46
|
-
"react-x/no-duplicate-jsx-props": "warn",
|
|
47
|
-
"react-x/no-duplicate-key": "warn",
|
|
48
|
-
"react-x/no-forward-ref": "warn",
|
|
49
|
-
"react-x/no-implicit-key": "warn",
|
|
50
|
-
"react-x/no-missing-key": "error",
|
|
51
|
-
"react-x/no-nested-components": "error",
|
|
52
|
-
"react-x/no-prop-types": "error",
|
|
53
|
-
"react-x/no-redundant-should-component-update": "error",
|
|
54
|
-
"react-x/no-set-state-in-component-did-mount": "warn",
|
|
55
|
-
"react-x/no-set-state-in-component-did-update": "warn",
|
|
56
|
-
"react-x/no-set-state-in-component-will-update": "warn",
|
|
57
|
-
"react-x/no-string-refs": "error",
|
|
58
|
-
"react-x/no-unsafe-component-will-mount": "warn",
|
|
59
|
-
"react-x/no-unsafe-component-will-receive-props": "warn",
|
|
60
|
-
"react-x/no-unsafe-component-will-update": "warn",
|
|
61
|
-
"react-x/no-unstable-context-value": "warn",
|
|
62
|
-
"react-x/no-unstable-default-props": "warn",
|
|
63
|
-
"react-x/no-unused-class-component-members": "warn",
|
|
64
|
-
"react-x/no-unused-state": "warn",
|
|
65
|
-
"react-x/no-use-context": "warn",
|
|
66
|
-
"react-x/use-jsx-vars": "warn",
|
|
20
|
+
import tseslint from "typescript-eslint";
|
|
21
|
+
|
|
22
|
+
export default tseslint.config({
|
|
23
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
24
|
+
extends: [
|
|
25
|
+
js.configs.recommended,
|
|
26
|
+
tseslint.configs.recommended,
|
|
27
|
+
reactx.configs.recommended,
|
|
28
|
+
],
|
|
29
|
+
languageOptions: {
|
|
30
|
+
parser: tseslint.parser,
|
|
31
|
+
parserOptions: {
|
|
32
|
+
projectService: true,
|
|
67
33
|
},
|
|
68
34
|
},
|
|
69
|
-
|
|
35
|
+
rules: {
|
|
36
|
+
// Put rules you want to override here
|
|
37
|
+
"react-x/prefer-shorthand-boolean": "warn",
|
|
38
|
+
},
|
|
39
|
+
});
|
|
70
40
|
```
|
|
71
41
|
|
|
72
42
|
## Rules
|
package/dist/index.js
CHANGED
|
@@ -137,7 +137,7 @@ var settings3 = {
|
|
|
137
137
|
|
|
138
138
|
// package.json
|
|
139
139
|
var name4 = "eslint-plugin-react-x";
|
|
140
|
-
var version = "1.27.1-next.
|
|
140
|
+
var version = "1.27.1-next.4";
|
|
141
141
|
var createRule = shared.createRuleForPlugin("x");
|
|
142
142
|
|
|
143
143
|
// src/utils/get-associated-tokens.ts
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "1.27.1-next.
|
|
3
|
+
"version": "1.27.1-next.4",
|
|
4
4
|
"description": "A set of composable linting rules for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"is-immutable-type": "^5.0.1",
|
|
51
51
|
"string-ts": "^2.2.1",
|
|
52
52
|
"ts-pattern": "^5.6.2",
|
|
53
|
-
"@eslint-react/ast": "1.27.1-next.
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
58
|
-
"@eslint-react/
|
|
53
|
+
"@eslint-react/ast": "1.27.1-next.4",
|
|
54
|
+
"@eslint-react/core": "1.27.1-next.4",
|
|
55
|
+
"@eslint-react/eff": "1.27.1-next.4",
|
|
56
|
+
"@eslint-react/jsx": "1.27.1-next.4",
|
|
57
|
+
"@eslint-react/shared": "1.27.1-next.4",
|
|
58
|
+
"@eslint-react/var": "1.27.1-next.4"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.0.10",
|