Skip to content

Commit

Permalink
chore(deps-dev): bump eslint from 5.16.0 to 6.0.0
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump eslint from 5.16.0 to 6.0.0

Bumps [eslint](https://github.com/eslint/eslint) from 5.16.0 to 6.0.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v5.16.0...v6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* fix: fix code for eslint 6

* chore: install eslint 5 for vue config


Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>
  • Loading branch information
fisker and dependabot-preview[bot] committed Jun 24, 2019
1 parent 7ee25e7 commit f77fb0f
Show file tree
Hide file tree
Showing 5 changed files with 1,334 additions and 1,329 deletions.
5 changes: 4 additions & 1 deletion packages/eslint-config-vue/package.json
Expand Up @@ -43,5 +43,8 @@
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"gitHead": "c7966c786085ee1f0101e027ea54dcbaa62e7912"
"gitHead": "c7966c786085ee1f0101e027ea54dcbaa62e7912",
"devDependencies": {
"eslint": "5.16.0"
}
}
2 changes: 1 addition & 1 deletion packages/eslint-config-vue/plugins/vue.js
@@ -1,5 +1,5 @@
// https://github.com/vuejs/eslint-plugin-vue
// https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/configs/strongly-recommended.js
// https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/configs/recommended.js

module.exports = {
plugins: ['vue'],
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-vue/scripts/compare.js
Expand Up @@ -7,12 +7,12 @@ const configs = {
vue: require('../index'),

'vue/recommended': {
plugin: ['vue'],
plugins: ['vue'],
extends: ['plugin:vue/recommended'],
},

'vue/recommended + prettier/vue': {
plugin: ['vue'],
plugins: ['vue'],
extends: [
'plugin:vue/recommended',
require.resolve('eslint-config-prettier/vue'),
Expand Down
12 changes: 7 additions & 5 deletions shared/eslint/get-rules.js
@@ -1,3 +1,4 @@
import {join} from 'path'
import {CLIEngine} from 'eslint'
import mem from 'mem'

Expand All @@ -9,16 +10,17 @@ function getRules(config) {
baseConfig: config,
useEslintrc: false,
})
engine.executeOnText('')

const {rules} = engine.config.baseConfig
const {rules} = engine.getConfigForFile('')
const defs = engine.getRules()

for (const ruleId of Object.keys(rules)) {
const value = ruleValue(rules[ruleId])
const documents = ruleDocuments(ruleId, defs)
for (const id of Object.keys(rules)) {
const value = ruleValue(rules[id])
const documents = ruleDocuments(id, defs)
const {url: link} = documents

rules[ruleId] = {
rules[id] = {
value,
link,
docs: documents,
Expand Down

0 comments on commit f77fb0f

Please sign in to comment.