Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Aug 18, 2020
1 parent 0c49619 commit 425bd9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
},
extends: [
'plugin:vue/essential',
'@vue/standard'
'eslint:recommended'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
Expand Down
4 changes: 1 addition & 3 deletions src/h5p.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,7 +19,7 @@ module.exports = {
return options
})
},
configureWebpack (config) {
configureWebpack () {
return {
output: {
libraryExport: 'default'
Expand Down

0 comments on commit 425bd9a

Please sign in to comment.