Skip to content

Commit

Permalink
refactor: update eslint and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenkr committed Feb 13, 2022
1 parent e0f5d57 commit 35342a0
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 313 deletions.
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const parseYn = (t) => Object.entries(t).reduce((acc, [key, value]) => { acc[key

export default (ctx, inject) => {
const { $config, route, app: { router } } = ctx
const { toggles: _toggles, queryString: _queryString, queryStringPrefix } = JSON.parse(`<%= JSON.stringify(options) %>`)
const { toggles: _toggles, queryString: _queryString, queryStringPrefix } = JSON.parse('<%= JSON.stringify(options) %>')
const runtimeConfig = ($config && $config.featureToggle) || {}
const queryString = typeof runtimeConfig.queryString !== 'undefined' ? runtimeConfig.queryString : _queryString
let queryToggles = {}
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,21 @@
"babel-core": "npm:@babel/core",
"babel-eslint": "^8.2.1",
"babel-jest": "^24.8.0",
"eslint": "^5.0.1",
"eslint": "^8.9.0",
"eslint-config-prettier": "^3.1.0",
"eslint-config-standard": ">=12.0.0",
"eslint-config-standard": ">=16.0.0",
"eslint-loader": "^2.0.0",
"eslint-plugin-import": ">=2.14.0",
"eslint-plugin-jest": ">=21.24.1",
"eslint-plugin-jest": "26.1.0",
"eslint-plugin-node": ">=7.0.1",
"eslint-plugin-nuxt": ">=0.4.2",
"eslint-plugin-prettier": "2.6.2",
"eslint-plugin-promise": ">=4.0.1",
"eslint-plugin-standard": ">=4.0.0",
"eslint-plugin-vue": "^5.0.0",
"eslint-plugin-vue": "^8.4.1",
"jest": "^24.8.0",
"prettier": "1.14.3",
"standard-version": "8.0.1",
"vue-jest": "^3.0.4",
"vue-template-compiler": "^2.6.10"
}
}
}
Loading

0 comments on commit 35342a0

Please sign in to comment.