diff --git a/lib/builder/builder.js b/lib/builder/builder.js index b0abf7d154..763a4de4e2 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -63,7 +63,7 @@ export default class Builder { get plugins() { return _.uniqBy( - this.options.plugins.map((p, i) => { + this.options.plugins.map(p => { if (typeof p === 'string') p = { src: p } const pluginBaseName = path.basename(p.src, path.extname(p.src)).replace( /[^a-zA-Z?\d\s:]/g, diff --git a/lib/core/middleware/nuxt.js b/lib/core/middleware/nuxt.js index 254bc2ff0e..57918d1243 100644 --- a/lib/core/middleware/nuxt.js +++ b/lib/core/middleware/nuxt.js @@ -47,7 +47,7 @@ export default async function nuxtMiddleware(req, res, next) { const { shouldPush } = this.options.render.http2 const { publicPath } = this.resources.clientManifest - preloadFiles.forEach(({ file, asType, fileWithoutQuery, extension }) => { + preloadFiles.forEach(({ file, asType, fileWithoutQuery }) => { // By default, we only preload scripts or css /* istanbul ignore if */ if (!shouldPush && asType !== 'script' && asType !== 'style') { diff --git a/lib/core/module.js b/lib/core/module.js index 9e64265ddd..d9b6ea8565 100644 --- a/lib/core/module.js +++ b/lib/core/module.js @@ -139,7 +139,7 @@ export default class ModuleContainer { options = {} } - return new Promise((resolve, reject) => { + return new Promise(resolve => { // Call module with `this` context and pass options const result = handler.call(this, options) diff --git a/test/fixtures/cli/cli.build.config.js b/test/fixtures/cli/cli.build.config.js index ca159d392a..089715c295 100644 --- a/test/fixtures/cli/cli.build.config.js +++ b/test/fixtures/cli/cli.build.config.js @@ -2,7 +2,7 @@ import consola from 'consola' export default { hooks(hook) { - hook('build:done', builder => { + hook('build:done', () => { consola.success('Compiled successfully') }) hook('listen', (server, { port, host }) => {