Skip to content

Commit

Permalink
fix: eslint plugin module loading in workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Aug 1, 2018
1 parent 1e10161 commit 185ae6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@vue/cli-plugin-eslint/ui/configDescriptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ function getEslintPrompts (data, rules) {
}

function onRead ({ data, cwd }) {
const rules = require(`${cwd}/node_modules/eslint-plugin-vue`).rules
const { loadModule } = require('@vue/cli-shared-utils')
const rules = loadModule('eslint-plugin-vue', cwd, true).rules

return {
tabs: [
Expand Down

0 comments on commit 185ae6d

Please sign in to comment.