-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: setup
import/resolver
and import/extensions
Fixes yarn 2 compatibility.
- Loading branch information
1 parent
9ba73b3
commit f78b634
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
module.exports = { | ||
extends: [ | ||
require.resolve('eslint-config-standard') | ||
] | ||
], | ||
settings: { | ||
'import/resolver': { | ||
// https://github.com/benmosher/eslint-plugin-import/issues/1396 | ||
[require.resolve('eslint-import-resolver-node')]: {}, | ||
[require.resolve('eslint-import-resolver-webpack')]: { | ||
config: require.resolve('@vue/cli-service/webpack.config.js'), | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
haoqunjiang
Author
Member
|
||
}, | ||
}, | ||
'import/extensions': [ | ||
'.js', | ||
'.jsx', | ||
'.mjs', | ||
'.ts', | ||
'.tsx', | ||
], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This assumes that all Vue projects are using Vue CLI. This just broke every Quasar Framework project out there.