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