Skip to content

Commit 6765b0c

Browse files
committedMar 10, 2023
chore: update module
1 parent 21b7f0d commit 6765b0c

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed
 

‎src/module.ts

+6-11
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,16 @@ export default defineNuxtModule<ModuleOptions>({
3333
return
3434
}
3535

36-
/* waiting nuxt 3.3
37-
if (hasNuxtCompatibility({ nuxt: '>=3.3' })) {
38-
nuxt.hooks.hookOnce('builder:watch', (_, path) => {
39-
const configFiles = [
40-
'.eslintrc',
36+
/*
37+
// waiting nuxt 3.3
38+
if (nuxt.options.watch) {
39+
nuxt.options.watch.push(
40+
'.eslintrc',
4141
'.eslintrc.js',
4242
'.eslintrc.yaml',
4343
'.eslintrc.yml',
4444
'.eslintrc.json'
45-
]
46-
47-
if (configFiles.includes(path)) {
48-
nuxt.callHook('restart', { hard: true })
49-
}
50-
})
45+
)
5146
}
5247
*/
5348

0 commit comments

Comments
 (0)
Please sign in to comment.