Skip to content

Commit eddccec

Browse files
committed
Fix path resolving for vue-eslint rules
1 parent f623d12 commit eddccec

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/app/config/webpack.common.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,18 @@ const publicPath = SANDBOX_ONLY || __DEV__ ? '/' : getHost() + '/';
2525
// Shim for `eslint-plugin-vue/lib/index.js`
2626
const ESLINT_PLUGIN_VUE_INDEX = `module.exports = {
2727
rules: {${fs
28-
.readdirSync('../../node_modules/eslint-plugin-vue/lib/rules')
28+
.readdirSync(
29+
path.join(
30+
__dirname,
31+
'..',
32+
'..',
33+
'..',
34+
'node_modules',
35+
'eslint-plugin-vue',
36+
'lib',
37+
'rules'
38+
)
39+
)
2940
.filter(filename => path.extname(filename) === '.js')
3041
.map(filename => {
3142
const ruleId = path.basename(filename, '.js');

0 commit comments

Comments
 (0)