@debbl/eslint-config 2.4.1 → 3.0.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/README.md +18 -15
- package/dist/index.cjs +1 -1672
- package/dist/index.d.cts +94 -71
- package/dist/index.d.ts +94 -71
- package/dist/index.js +1 -1591
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ export default config({
|
|
|
52
52
|
|
|
53
53
|
## 完整的 OptionConfig
|
|
54
54
|
|
|
55
|
-
[types.ts](./src/types.ts#
|
|
55
|
+
[types.ts](./src/types.ts#L70)
|
|
56
56
|
|
|
57
57
|
```ts
|
|
58
58
|
export interface OptionsConfig extends OptionsComponentExts {
|
|
@@ -61,11 +61,14 @@ export interface OptionsConfig extends OptionsComponentExts {
|
|
|
61
61
|
* Passing an object to configure the options.
|
|
62
62
|
* @default true
|
|
63
63
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
ignores?: boolean | GetConfigOption<IgnoresConfig>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Enable JavaScript support.
|
|
68
|
+
* Passing an object to configure the options.
|
|
69
|
+
* @default true
|
|
70
|
+
*/
|
|
71
|
+
javascript?: GetConfigOption<JavascriptConfig>;
|
|
69
72
|
|
|
70
73
|
/**
|
|
71
74
|
* Enable TypeScript support.
|
|
@@ -74,62 +77,62 @@ export interface OptionsConfig extends OptionsComponentExts {
|
|
|
74
77
|
*
|
|
75
78
|
* @default false
|
|
76
79
|
*/
|
|
77
|
-
typescript?: boolean |
|
|
80
|
+
typescript?: boolean | GetConfigOption<TypeScriptConfig>;
|
|
78
81
|
|
|
79
82
|
/**
|
|
80
83
|
* Enable test support.
|
|
81
84
|
*
|
|
82
85
|
* @default true
|
|
83
86
|
*/
|
|
84
|
-
test?: boolean
|
|
87
|
+
test?: boolean | GetConfigOption<TestConfig>;
|
|
85
88
|
|
|
86
89
|
/**
|
|
87
90
|
* Enable Vue support.
|
|
88
91
|
*
|
|
89
92
|
* @default false
|
|
90
93
|
*/
|
|
91
|
-
vue?: boolean
|
|
94
|
+
vue?: boolean | GetConfigOption<VueConfig>;
|
|
92
95
|
|
|
93
96
|
/**
|
|
94
97
|
* Enable React support, Passing an object to enable Next.js support.
|
|
95
98
|
*
|
|
96
99
|
* @default false
|
|
97
100
|
*/
|
|
98
|
-
react?: boolean |
|
|
101
|
+
react?: boolean | GetConfigOption<ReactConfig>;
|
|
99
102
|
|
|
100
103
|
/**
|
|
101
104
|
* Enable JSONC support.
|
|
102
105
|
*
|
|
103
106
|
* @default true
|
|
104
107
|
*/
|
|
105
|
-
jsonc?: boolean
|
|
108
|
+
jsonc?: boolean | GetConfigOption<JsoncConfig>;
|
|
106
109
|
|
|
107
110
|
/**
|
|
108
111
|
* Enable YML support.
|
|
109
112
|
*
|
|
110
113
|
* @default true
|
|
111
114
|
*/
|
|
112
|
-
yml?: boolean
|
|
115
|
+
yml?: boolean | GetConfigOption<YmlConfig>;
|
|
113
116
|
|
|
114
117
|
/**
|
|
115
118
|
* Enable TOML support.
|
|
116
119
|
* @default true
|
|
117
120
|
*/
|
|
118
|
-
toml?: boolean
|
|
121
|
+
toml?: boolean | GetConfigOption<TomlConfig>;
|
|
119
122
|
|
|
120
123
|
/**
|
|
121
124
|
* Enable Markdown support.
|
|
122
125
|
*
|
|
123
126
|
* @default true
|
|
124
127
|
*/
|
|
125
|
-
markdown?: boolean
|
|
128
|
+
markdown?: boolean | GetConfigOption<MarkdownConfig>;
|
|
126
129
|
|
|
127
130
|
/**
|
|
128
131
|
* Enable prettier rules.
|
|
129
132
|
*
|
|
130
133
|
* @default true
|
|
131
134
|
*/
|
|
132
|
-
prettier?: boolean |
|
|
135
|
+
prettier?: boolean | GetConfigOption<PrettierConfig>;
|
|
133
136
|
|
|
134
137
|
/**
|
|
135
138
|
* Enable Tailwind CSS support.
|