1010- ✨ Support Vue, React, Svelte.
1111- 🎯 Designed to work with TypeScript, Vue out-of-box
1212- 🏆 Reasonable defaults, best practices, only one-line of config
13- - 🎨 Use ESlint to format HTML, CSS, LESS, SCSS, YAML, TOML, Markdown, JSON, JSONC.
1413
1514## Usage
1615
@@ -59,43 +58,14 @@ Add the following settings to your `.vscode/settings.json`:
5958
6059``` jsonc
6160{
62- // Disable the default formatter, use eslint instead
63- " prettier.enable" : false ,
61+ " prettier.enable" : true ,
6462 " editor.formatOnSave" : false ,
6563
6664 // Auto fix
6765 " editor.codeActionsOnSave" : {
6866 " source.fixAll" : " explicit" ,
69- " source.organizeImports" : " never"
67+ " source.organizeImports" : " never" ,
7068 },
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- ]
9969}
10070```
10171
@@ -157,15 +127,6 @@ interface OptionsConfig extends OptionsComponentExts {
157127 */
158128 typescript? : boolean | OptionsTypescript
159129
160- /**
161- * Enable JSX related rules.
162- *
163- * Currently only stylistic rules are included.
164- *
165- * @default true
166- */
167- jsx? : boolean
168-
169130 /**
170131 * Enable test support.
171132 *
@@ -226,14 +187,6 @@ interface OptionsConfig extends OptionsComponentExts {
226187 */
227188 unocss? : boolean | OptionsUnoCSS
228189
229- /**
230- * Enable stylistic rules.
231- *
232- * @see https://eslint.style/
233- * @default true
234- */
235- stylistic? : boolean | (StylisticConfig & OptionsOverrides )
236-
237190 /**
238191 * Enable regexp rules.
239192 *
@@ -242,23 +195,6 @@ interface OptionsConfig extends OptionsComponentExts {
242195 */
243196 regexp? : boolean | (OptionsRegExp & OptionsOverrides )
244197
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-
262198 /**
263199 * Control to disable some rules in editors.
264200 * @default auto-detect based on the process.env
0 commit comments