10
10
- ✨ Support Vue, React, Svelte.
11
11
- 🎯 Designed to work with TypeScript, Vue out-of-box
12
12
- 🏆 Reasonable defaults, best practices, only one-line of config
13
- - 🎨 Use ESlint to format HTML, CSS, LESS, SCSS, YAML, TOML, Markdown, JSON, JSONC.
14
13
15
14
## Usage
16
15
@@ -59,43 +58,14 @@ Add the following settings to your `.vscode/settings.json`:
59
58
60
59
``` jsonc
61
60
{
62
- // Disable the default formatter, use eslint instead
63
- " prettier.enable" : false ,
61
+ " prettier.enable" : true ,
64
62
" editor.formatOnSave" : false ,
65
63
66
64
// Auto fix
67
65
" editor.codeActionsOnSave" : {
68
66
" source.fixAll" : " explicit" ,
69
- " source.organizeImports" : " never"
67
+ " source.organizeImports" : " never" ,
70
68
},
71
-
72
- // Silent the stylistic rules in you IDE, but still auto fix them
73
- " eslint.rules.customizations" : [
74
- { " rule" : " style/*" , " severity" : " off" , " fixable" : true },
75
- { " rule" : " format/*" , " severity" : " off" , " fixable" : true },
76
- { " rule" : " *-indent" , " severity" : " off" , " fixable" : true },
77
- { " rule" : " *-spacing" , " severity" : " off" , " fixable" : true },
78
- { " rule" : " *-spaces" , " severity" : " off" , " fixable" : true },
79
- { " rule" : " *-order" , " severity" : " off" , " fixable" : true },
80
- { " rule" : " *-dangle" , " severity" : " off" , " fixable" : true },
81
- { " rule" : " *-newline" , " severity" : " off" , " fixable" : true },
82
- { " rule" : " *quotes" , " severity" : " off" , " fixable" : true },
83
- { " rule" : " *semi" , " severity" : " off" , " fixable" : true }
84
- ],
85
-
86
- // Enable eslint for all supported languages
87
- " eslint.validate" : [
88
- " html" ,
89
- " css" ,
90
- " less" ,
91
- " scss" ,
92
- " json" ,
93
- " jsonc" ,
94
- " yaml" ,
95
- " yml" ,
96
- " markdown" ,
97
- " toml"
98
- ]
99
69
}
100
70
```
101
71
@@ -157,15 +127,6 @@ interface OptionsConfig extends OptionsComponentExts {
157
127
*/
158
128
typescript? : boolean | OptionsTypescript
159
129
160
- /**
161
- * Enable JSX related rules.
162
- *
163
- * Currently only stylistic rules are included.
164
- *
165
- * @default true
166
- */
167
- jsx? : boolean
168
-
169
130
/**
170
131
* Enable test support.
171
132
*
@@ -226,14 +187,6 @@ interface OptionsConfig extends OptionsComponentExts {
226
187
*/
227
188
unocss? : boolean | OptionsUnoCSS
228
189
229
- /**
230
- * Enable stylistic rules.
231
- *
232
- * @see https://eslint.style/
233
- * @default true
234
- */
235
- stylistic? : boolean | (StylisticConfig & OptionsOverrides )
236
-
237
190
/**
238
191
* Enable regexp rules.
239
192
*
@@ -242,23 +195,6 @@ interface OptionsConfig extends OptionsComponentExts {
242
195
*/
243
196
regexp? : boolean | (OptionsRegExp & OptionsOverrides )
244
197
245
- /**
246
- * Use external formatters to format files.
247
- *
248
- * @default
249
- * {
250
- * "html": true,
251
- * "css": true,
252
- * "graphql": false,
253
- * "markdown": false
254
- * "yaml": false
255
- * "toml": false
256
- * }
257
- *
258
- * When set to `true`, it will enable all formatters.
259
- */
260
- formatter? : boolean | OptionsFormatters
261
-
262
198
/**
263
199
* Control to disable some rules in editors.
264
200
* @default auto-detect based on the process.env
0 commit comments