Skip to content

Commit

Permalink
Prefer aliased paths
Browse files Browse the repository at this point in the history
  • Loading branch information
misenhower committed Mar 17, 2024
1 parent d1c3480 commit 7ce9950
Show file tree
Hide file tree
Showing 39 changed files with 880 additions and 73 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const createAliasSetting = require('@vue/eslint-config-airbnb/createAliasSetting

module.exports = {
'root': true,
'plugins': [
'@dword-design/import-alias',
],
'extends': [
'plugin:vue/vue3-recommended',
'eslint:recommended',
Expand Down Expand Up @@ -39,6 +42,16 @@ module.exports = {
'module': 'readonly',
'Buffer': 'readonly',
},
'overrides': [
{
'files': ['src/**'],
'rules': {
'@dword-design/import-alias/prefer-alias': ['warn', { 'alias': {
'@': './src',
} }],
},
},
],
'env': {
'vue/setup-compiler-macros': true,
},
Expand Down
Loading

0 comments on commit 7ce9950

Please sign in to comment.