feat: Update project to support absolute imports
A tiny MVC for: #25 (closed)
Changes needed to support this:
- Set
alias
inside thevue.config.js
- Disable eslint rule:
'import/no-unresolved': 0,
=> this stops the linter complaining on a alias import - Disable eslint rule: 'import/extensions': 0
=> this stops the linter complaining on a alias import without a set extension since we use a entry index file in
src/components` - Update jest config to enable alias mapping:
"moduleNameMapper": {
"~(.*)$": "<rootDir>/src/$1"
},