Fix few more eslint notices

This commit is contained in:
Viktor Denisov
2022-12-16 11:46:51 -08:00
parent 4c5ceb67ad
commit fea4284390
4 changed files with 3 additions and 6 deletions

View File

@@ -9,7 +9,6 @@ const paths = require('../utils/paths')
const webpackConfig = require('../config/prod') const webpackConfig = require('../config/prod')
const config = require('../project.config') const config = require('../project.config')
rm(paths.resolve(config.outputDir), (err) => { rm(paths.resolve(config.outputDir), (err) => {
if (err) throw err if (err) throw err

View File

@@ -30,7 +30,7 @@ module.exports = {
alias: { alias: {
'@': paths.resolve('src'), '@': paths.resolve('src'),
}, },
extensions: ['.js','.vue', '.json'], extensions: ['.js', '.vue', '.json'],
}, },
plugins: [ plugins: [

View File

@@ -37,9 +37,7 @@ const genStyleRules = () => {
return { test, use: loaders } return { test, use: loaders }
} }
return [ return [createCSSRule(/\.css$/)]
createCSSRule(/\.css$/),
]
} }
module.exports = { module.exports = {

View File

@@ -1,6 +1,6 @@
'use strict' 'use strict'
module.exports = (options) => ({ module.exports = () => ({
terserOptions: { terserOptions: {
compress: { compress: {
// turn off flags with small gains to speed up minification // turn off flags with small gains to speed up minification