Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f23bbcc

Browse files
committedJan 13, 2020
refactor: use full path for resolvers
It's safer than relying on package hoisting.
1 parent 8642719 commit f23bbcc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ module.exports = {
55
settings: {
66
'import/resolver': {
77
// https://github.com/benmosher/eslint-plugin-import/issues/1396
8-
node: {},
9-
webpack: {
8+
[require.resolve('eslint-import-resolver-node')]: {},
9+
[require.resolve('eslint-import-resolver-webpack')]: {
1010
config: require.resolve('@vue/cli-service/webpack.config.js')
1111
}
1212
},

‎package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
"homepage": "https://github.com/vuejs/eslint-config-airbnb#readme",
2323
"dependencies": {
2424
"eslint-config-airbnb-base": "^14.0.0",
25+
"eslint-import-resolver-node": "^0.3.3",
2526
"eslint-import-resolver-webpack": "^0.11.1",
2627
"eslint-plugin-import": "^2.18.2"
2728
},
2829
"peerDependencies": {
30+
"@vue/cli-service": "^3.0.0 || ^4.0.0-0",
2931
"eslint": "^5.16.0 || ^6.1.0",
30-
"eslint-plugin-import": "^2.18.2",
31-
"@vue/cli-service": "^3.0.0 || ^4.0.0-0"
32+
"eslint-plugin-import": "^2.18.2"
3233
}
3334
}

0 commit comments

Comments
 (0)
Please sign in to comment.