eslint-plugin-react-x 1.52.9 → 1.52.10-beta.0
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/dist/index.d.mts +14 -18
- package/dist/index.d.ts +14 -18
- package/dist/index.js +2 -15
- package/dist/index.mjs +3 -16
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,47 +1,43 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { RulePreset } from '@eslint-react/kit';
|
|
1
|
+
import * as _eslint_react_kit from '@eslint-react/kit';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
5
|
recommended: {
|
|
7
|
-
plugins: {
|
|
8
|
-
"react-x": _eslint_react_shared.CompatiblePlugin;
|
|
9
|
-
};
|
|
6
|
+
plugins: {};
|
|
10
7
|
name?: string;
|
|
11
|
-
rules?: Record<string,
|
|
8
|
+
rules?: Record<string, _eslint_react_kit.RuleConfig>;
|
|
9
|
+
settings?: _eslint_react_kit.SettingsConfig;
|
|
12
10
|
};
|
|
13
11
|
"recommended-legacy": {
|
|
14
12
|
plugins: string[];
|
|
15
|
-
rules:
|
|
13
|
+
rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
|
|
16
14
|
};
|
|
17
15
|
"recommended-type-checked": {
|
|
18
|
-
plugins: {
|
|
19
|
-
"react-x": _eslint_react_shared.CompatiblePlugin;
|
|
20
|
-
};
|
|
16
|
+
plugins: {};
|
|
21
17
|
name?: string;
|
|
22
|
-
rules?: Record<string,
|
|
18
|
+
rules?: Record<string, _eslint_react_kit.RuleConfig>;
|
|
19
|
+
settings?: _eslint_react_kit.SettingsConfig;
|
|
23
20
|
};
|
|
24
21
|
"recommended-type-checked-legacy": {
|
|
25
22
|
plugins: string[];
|
|
26
|
-
rules:
|
|
23
|
+
rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
|
|
27
24
|
};
|
|
28
25
|
"recommended-typescript": {
|
|
29
|
-
plugins: {
|
|
30
|
-
"react-x": _eslint_react_shared.CompatiblePlugin;
|
|
31
|
-
};
|
|
26
|
+
plugins: {};
|
|
32
27
|
name?: string;
|
|
33
|
-
rules?: Record<string,
|
|
28
|
+
rules?: Record<string, _eslint_react_kit.RuleConfig>;
|
|
29
|
+
settings?: _eslint_react_kit.SettingsConfig;
|
|
34
30
|
};
|
|
35
31
|
"recommended-typescript-legacy": {
|
|
36
32
|
plugins: string[];
|
|
37
|
-
rules:
|
|
33
|
+
rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
|
|
38
34
|
};
|
|
39
35
|
};
|
|
40
36
|
meta: {
|
|
41
37
|
name: string;
|
|
42
38
|
version: string;
|
|
43
39
|
};
|
|
44
|
-
rules: Record<string,
|
|
40
|
+
rules: Record<string, _eslint_react_kit.CompatibleRule>;
|
|
45
41
|
};
|
|
46
42
|
|
|
47
43
|
export { _default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,47 +1,43 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { RulePreset } from '@eslint-react/kit';
|
|
1
|
+
import * as _eslint_react_kit from '@eslint-react/kit';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
5
|
recommended: {
|
|
7
|
-
plugins: {
|
|
8
|
-
"react-x": _eslint_react_shared.CompatiblePlugin;
|
|
9
|
-
};
|
|
6
|
+
plugins: {};
|
|
10
7
|
name?: string;
|
|
11
|
-
rules?: Record<string,
|
|
8
|
+
rules?: Record<string, _eslint_react_kit.RuleConfig>;
|
|
9
|
+
settings?: _eslint_react_kit.SettingsConfig;
|
|
12
10
|
};
|
|
13
11
|
"recommended-legacy": {
|
|
14
12
|
plugins: string[];
|
|
15
|
-
rules:
|
|
13
|
+
rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
|
|
16
14
|
};
|
|
17
15
|
"recommended-type-checked": {
|
|
18
|
-
plugins: {
|
|
19
|
-
"react-x": _eslint_react_shared.CompatiblePlugin;
|
|
20
|
-
};
|
|
16
|
+
plugins: {};
|
|
21
17
|
name?: string;
|
|
22
|
-
rules?: Record<string,
|
|
18
|
+
rules?: Record<string, _eslint_react_kit.RuleConfig>;
|
|
19
|
+
settings?: _eslint_react_kit.SettingsConfig;
|
|
23
20
|
};
|
|
24
21
|
"recommended-type-checked-legacy": {
|
|
25
22
|
plugins: string[];
|
|
26
|
-
rules:
|
|
23
|
+
rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
|
|
27
24
|
};
|
|
28
25
|
"recommended-typescript": {
|
|
29
|
-
plugins: {
|
|
30
|
-
"react-x": _eslint_react_shared.CompatiblePlugin;
|
|
31
|
-
};
|
|
26
|
+
plugins: {};
|
|
32
27
|
name?: string;
|
|
33
|
-
rules?: Record<string,
|
|
28
|
+
rules?: Record<string, _eslint_react_kit.RuleConfig>;
|
|
29
|
+
settings?: _eslint_react_kit.SettingsConfig;
|
|
34
30
|
};
|
|
35
31
|
"recommended-typescript-legacy": {
|
|
36
32
|
plugins: string[];
|
|
37
|
-
rules:
|
|
33
|
+
rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
|
|
38
34
|
};
|
|
39
35
|
};
|
|
40
36
|
meta: {
|
|
41
37
|
name: string;
|
|
42
38
|
version: string;
|
|
43
39
|
};
|
|
44
|
-
rules: Record<string,
|
|
40
|
+
rules: Record<string, _eslint_react_kit.CompatibleRule>;
|
|
45
41
|
};
|
|
46
42
|
|
|
47
43
|
export { _default as default };
|
package/dist/index.js
CHANGED
|
@@ -142,7 +142,7 @@ var settings3 = {
|
|
|
142
142
|
|
|
143
143
|
// package.json
|
|
144
144
|
var name4 = "eslint-plugin-react-x";
|
|
145
|
-
var version = "1.52.
|
|
145
|
+
var version = "1.52.10-beta.0";
|
|
146
146
|
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("x"));
|
|
147
147
|
|
|
148
148
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -3799,20 +3799,7 @@ var plugin = {
|
|
|
3799
3799
|
};
|
|
3800
3800
|
|
|
3801
3801
|
// src/index.ts
|
|
3802
|
-
|
|
3803
|
-
return {
|
|
3804
|
-
...config,
|
|
3805
|
-
plugins: {
|
|
3806
|
-
"react-x": plugin
|
|
3807
|
-
}
|
|
3808
|
-
};
|
|
3809
|
-
}
|
|
3810
|
-
function toLegacyConfig({ rules: rules4 }) {
|
|
3811
|
-
return {
|
|
3812
|
-
plugins: ["react-x"],
|
|
3813
|
-
rules: rules4
|
|
3814
|
-
};
|
|
3815
|
-
}
|
|
3802
|
+
var { toFlatConfig, toLegacyConfig } = shared.getConfigAdapters("react-x", plugin);
|
|
3816
3803
|
var index_default = {
|
|
3817
3804
|
...plugin,
|
|
3818
3805
|
configs: {
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDocsUrl, getSettingsFromContext, coerceSettings, DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
|
|
1
|
+
import { getDocsUrl, getSettingsFromContext, getConfigAdapters, coerceSettings, DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
|
|
2
2
|
import * as ER25 from '@eslint-react/core';
|
|
3
3
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
4
4
|
import { JsxConfig, Reporter, Selector, LanguagePreference } from '@eslint-react/kit';
|
|
@@ -115,7 +115,7 @@ var settings3 = {
|
|
|
115
115
|
|
|
116
116
|
// package.json
|
|
117
117
|
var name4 = "eslint-plugin-react-x";
|
|
118
|
-
var version = "1.52.
|
|
118
|
+
var version = "1.52.10-beta.0";
|
|
119
119
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
|
|
120
120
|
|
|
121
121
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -3772,20 +3772,7 @@ var plugin = {
|
|
|
3772
3772
|
};
|
|
3773
3773
|
|
|
3774
3774
|
// src/index.ts
|
|
3775
|
-
|
|
3776
|
-
return {
|
|
3777
|
-
...config,
|
|
3778
|
-
plugins: {
|
|
3779
|
-
"react-x": plugin
|
|
3780
|
-
}
|
|
3781
|
-
};
|
|
3782
|
-
}
|
|
3783
|
-
function toLegacyConfig({ rules: rules4 }) {
|
|
3784
|
-
return {
|
|
3785
|
-
plugins: ["react-x"],
|
|
3786
|
-
rules: rules4
|
|
3787
|
-
};
|
|
3788
|
-
}
|
|
3775
|
+
var { toFlatConfig, toLegacyConfig } = getConfigAdapters("react-x", plugin);
|
|
3789
3776
|
var index_default = {
|
|
3790
3777
|
...plugin,
|
|
3791
3778
|
configs: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.10-beta.0",
|
|
4
4
|
"description": "4-7x faster composable ESLint rules for 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.8.0",
|
|
53
|
-
"@eslint-react/ast": "1.52.
|
|
54
|
-
"@eslint-react/core": "1.52.
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/var": "1.52.
|
|
58
|
-
"@eslint-react/
|
|
53
|
+
"@eslint-react/ast": "1.52.10-beta.0",
|
|
54
|
+
"@eslint-react/core": "1.52.10-beta.0",
|
|
55
|
+
"@eslint-react/eff": "1.52.10-beta.0",
|
|
56
|
+
"@eslint-react/shared": "1.52.10-beta.0",
|
|
57
|
+
"@eslint-react/var": "1.52.10-beta.0",
|
|
58
|
+
"@eslint-react/kit": "1.52.10-beta.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.1.12",
|