eslint-plugin-react-x 3.0.0-next.7 → 3.0.0-next.71
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.ts +5 -82
- package/dist/index.js +4466 -1560
- package/package.json +11 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,86 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ESLint, Linter } from "eslint";
|
|
2
2
|
|
|
3
3
|
//#region src/index.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* Disable experimental rules that might be subject to change in the future
|
|
8
|
-
*/
|
|
9
|
-
"disable-experimental": {
|
|
10
|
-
plugins: {};
|
|
11
|
-
name?: string;
|
|
12
|
-
rules?: Record<string, _eslint_react_shared0.RuleConfig>;
|
|
13
|
-
settings?: _eslint_react_shared0.SettingsConfig;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Disable rules that can be enforced by TypeScript
|
|
17
|
-
*/
|
|
18
|
-
"disable-type-checked": {
|
|
19
|
-
plugins: {};
|
|
20
|
-
name?: string;
|
|
21
|
-
rules?: Record<string, _eslint_react_shared0.RuleConfig>;
|
|
22
|
-
settings?: _eslint_react_shared0.SettingsConfig;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Enforce rules that are recommended by ESLint React for general purpose React + React DOM projects
|
|
26
|
-
*/
|
|
27
|
-
recommended: {
|
|
28
|
-
plugins: {};
|
|
29
|
-
name?: string;
|
|
30
|
-
rules?: Record<string, _eslint_react_shared0.RuleConfig>;
|
|
31
|
-
settings?: _eslint_react_shared0.SettingsConfig;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Same as the `recommended-typescript` preset but enables additional rules that require type information
|
|
35
|
-
*/
|
|
36
|
-
"recommended-type-checked": {
|
|
37
|
-
plugins: {};
|
|
38
|
-
name?: string;
|
|
39
|
-
rules?: Record<string, _eslint_react_shared0.RuleConfig>;
|
|
40
|
-
settings?: _eslint_react_shared0.SettingsConfig;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Same as the `recommended` preset but disables rules that can be enforced by TypeScript
|
|
44
|
-
*/
|
|
45
|
-
"recommended-typescript": {
|
|
46
|
-
plugins: {};
|
|
47
|
-
name?: string;
|
|
48
|
-
rules?: Record<string, _eslint_react_shared0.RuleConfig>;
|
|
49
|
-
settings?: _eslint_react_shared0.SettingsConfig;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* More strict version of the `recommended` preset
|
|
53
|
-
*/
|
|
54
|
-
strict: {
|
|
55
|
-
plugins: {};
|
|
56
|
-
name?: string;
|
|
57
|
-
rules?: Record<string, _eslint_react_shared0.RuleConfig>;
|
|
58
|
-
settings?: _eslint_react_shared0.SettingsConfig;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Same as the `strict-typescript` preset but enables additional rules that require type information
|
|
62
|
-
*/
|
|
63
|
-
"strict-type-checked": {
|
|
64
|
-
plugins: {};
|
|
65
|
-
name?: string;
|
|
66
|
-
rules?: Record<string, _eslint_react_shared0.RuleConfig>;
|
|
67
|
-
settings?: _eslint_react_shared0.SettingsConfig;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Same as the `strict` preset but disables rules that can be enforced by TypeScript
|
|
71
|
-
*/
|
|
72
|
-
"strict-typescript": {
|
|
73
|
-
plugins: {};
|
|
74
|
-
name?: string;
|
|
75
|
-
rules?: Record<string, _eslint_react_shared0.RuleConfig>;
|
|
76
|
-
settings?: _eslint_react_shared0.SettingsConfig;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
meta: {
|
|
80
|
-
name: string;
|
|
81
|
-
version: string;
|
|
82
|
-
};
|
|
83
|
-
rules: Record<string, _eslint_react_shared0.CompatibleRule>;
|
|
4
|
+
type ConfigName = "disable-experimental" | "disable-type-checked" | "disable-conflict-eslint-plugin-react" | "disable-conflict-eslint-plugin-react-hooks" | "recommended" | "recommended-type-checked" | "recommended-typescript" | "strict" | "strict-type-checked" | "strict-typescript";
|
|
5
|
+
declare const finalPlugin: ESLint.Plugin & {
|
|
6
|
+
configs: Record<ConfigName, Linter.Config>;
|
|
84
7
|
};
|
|
85
8
|
//#endregion
|
|
86
|
-
export {
|
|
9
|
+
export { finalPlugin as default };
|