Skip to content

Commit

Permalink
chore: update module
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Mar 10, 2023
1 parent 21b7f0d commit 6765b0c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,16 @@ export default defineNuxtModule<ModuleOptions>({
return
}

/* waiting nuxt 3.3
if (hasNuxtCompatibility({ nuxt: '>=3.3' })) {
nuxt.hooks.hookOnce('builder:watch', (_, path) => {
const configFiles = [
'.eslintrc',
/*
// waiting nuxt 3.3
if (nuxt.options.watch) {
nuxt.options.watch.push(
'.eslintrc',
'.eslintrc.js',
'.eslintrc.yaml',
'.eslintrc.yml',
'.eslintrc.json'
]
if (configFiles.includes(path)) {
nuxt.callHook('restart', { hard: true })
}
})
)
}
*/

Expand Down

0 comments on commit 6765b0c

Please sign in to comment.