We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21b7f0d commit 6765b0cCopy full SHA for 6765b0c
src/module.ts
@@ -33,21 +33,16 @@ export default defineNuxtModule<ModuleOptions>({
33
return
34
}
35
36
- /* waiting nuxt 3.3
37
- if (hasNuxtCompatibility({ nuxt: '>=3.3' })) {
38
- nuxt.hooks.hookOnce('builder:watch', (_, path) => {
39
- const configFiles = [
40
- '.eslintrc',
+ /*
+ // waiting nuxt 3.3
+ if (nuxt.options.watch) {
+ nuxt.options.watch.push(
+ '.eslintrc',
41
'.eslintrc.js',
42
'.eslintrc.yaml',
43
'.eslintrc.yml',
44
'.eslintrc.json'
45
- ]
46
-
47
- if (configFiles.includes(path)) {
48
- nuxt.callHook('restart', { hard: true })
49
- }
50
- })
+ )
51
52
*/
53
0 commit comments