mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-29 17:37:54 +01:00
linter setup
This commit is contained in:
1 parent
896373d998
commit
0fbd7cf506
5 files changed
+1979
-31
No files matched your search
+13
-1
@@ -51,6 +51,18 @@ export default {
|
||||
},
|
||||
|
||||
|
||||
build: {}
|
||||
build: {
|
||||
extend (config, ctx) {
|
||||
// Run ESLint on save (dev-only)
|
||||
if (ctx.isDev && ctx.isClient) {
|
||||
config.module.rules.push({
|
||||
enforce: 'pre',
|
||||
test: /\.(js|vue)$/,
|
||||
loader: 'eslint-loader',
|
||||
exclude: /(node_modules)/
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user