Skip to content

Commit 05f0005

Browse files
committedApr 18, 2024
fix(module): adding fix option to checker, fix #394
1 parent 7bfb780 commit 05f0005

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
 

‎packages/module/src/types.ts

+6
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ export interface CheckerOptions {
8383
*/
8484
emitError?: boolean
8585

86+
/**
87+
* Run ESLint fix
88+
* @default false
89+
*/
90+
fix?: boolean
91+
8692
/**
8793
* Vite specific options
8894
*/

‎playground/nuxt.config.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ export default defineNuxtConfig({
66
enabled: true,
77
},
88
eslint: {
9-
checker: true,
9+
config: {
10+
stylistic: true,
11+
},
12+
checker: {
13+
lintOnStart: true,
14+
fix: true,
15+
},
1016
},
1117
})

0 commit comments

Comments
 (0)