-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix ghost dependencies used by
eslint-import-resolver-vite
pzmosq…
…uito/eslint-import-resolver-vite#22 @ .yarnrc.yml $ yarn add -D vue-eslint-parser # ghost dependency used in .eslintrc.cjs * simplify glob in options of rule `import/order` @ .eslintrc.cjs $ yarn eslint --fix src @ fe
- Loading branch information
Showing
8 changed files
with
32 additions
and
25 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 |
---|---|---|
|
@@ -35,13 +35,13 @@ const eslintPluginImport = { // as of [email protected] | |
{ pattern: '**/*.vue', group: 'internal', position: 'before' }, // vue SFC | ||
{ pattern: '@/**', group: 'internal', position: 'before' }, | ||
{ pattern: 'vue*', group: 'external', position: 'before' }, // vue vue-router | ||
{ pattern: '*vue', group: 'external', position: 'before' }, // ant-design-vue | ||
{ pattern: '*vue*/**', group: 'external', position: 'before' }, // @vueuse/core | ||
{ pattern: '*/*vue*/**', group: 'external', position: 'before' }, // @unhead/vue @fortawesome/vue-fontawesome | ||
{ pattern: '{lodash{,-{es,fp}},lodash{,-{es,fp}}/**}', group: 'external', position: 'after' }, // lodash | ||
{ pattern: '{echarts,echarts/**}', group: 'external', position: 'after' }, | ||
{ pattern: 'pinia', group: 'external', position: 'before' }, | ||
{ pattern: '*vue*{,/**}', group: 'external', position: 'before' }, // ant-design-vue @vueuse/core | ||
{ pattern: '*/*vue*{,/**}', group: 'external', position: 'before' }, // @unhead/vue @fortawesome/vue-fontawesome | ||
{ pattern: 'lodash{,-{es,fp}}{,/**}', group: 'external', position: 'after' }, // lodash | ||
{ pattern: 'echarts{,/**}', group: 'external', position: 'after' }, | ||
], | ||
pathGroupsExcludedImportTypes: [], | ||
pathGroupsExcludedImportTypes: [], // https://github.com/import-js/eslint-plugin-import/issues/2897 | ||
distinctGroup: false, | ||
alphabetize: { order: 'asc', orderImportKind: 'asc' }, | ||
warnOnUnassignedImports: true, | ||
|
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,2 +1,7 @@ | ||
nodeLinker: pnp | ||
yarnPath: .yarn/releases/yarn-4.1.0.cjs | ||
packageExtensions: | ||
"eslint-import-resolver-vite@*": | ||
dependencies: # https://github.com/pzmosquito/eslint-import-resolver-vite/pull/22 | ||
"resolve": "*" | ||
"debug": "*" |
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 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 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 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 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 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