From 425bd9a006b82c86e00cc0167a9ad5280958b539 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 18 Aug 2020 20:57:43 +0200 Subject: [PATCH] fix linter --- .eslintrc.js | 2 +- src/h5p.vue | 4 +--- vue.config.js | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 1d68845..de08e74 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,7 +5,7 @@ module.exports = { }, extends: [ 'plugin:vue/essential', - '@vue/standard' + 'eslint:recommended' ], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', diff --git a/src/h5p.vue b/src/h5p.vue index eef3017..e786e72 100644 --- a/src/h5p.vue +++ b/src/h5p.vue @@ -18,9 +18,7 @@ import Toposort from 'toposort-class' import { FetchError } from '@/errors' import l10n from '@/l10n' -// eslint-disable-next-line import/no-webpack-loader-syntax import frameScript from '!raw-loader!../frame/frame' -// eslint-disable-next-line import/no-webpack-loader-syntax import frameStyle from '!to-string-loader!css-loader!../vendor/h5p/styles/h5p.css' export default { @@ -151,7 +149,7 @@ export default { let body = {} try { body = await resp.json() - } catch {} + } catch { /* eslint-disable-line no-empty */ } throw new FetchError(resp, body) } return resp.json() diff --git a/vue.config.js b/vue.config.js index f940d47..ab2ef08 100644 --- a/vue.config.js +++ b/vue.config.js @@ -4,7 +4,7 @@ module.exports = { devServer: { historyApiFallback: false }, - chainWebpack: config => { + chainWebpack (config) { config.module.rule('fonts').use('url-loader').tap(options => { options.limit = true return options @@ -19,7 +19,7 @@ module.exports = { return options }) }, - configureWebpack (config) { + configureWebpack () { return { output: { libraryExport: 'default'