Skip to content

feat: Update project to support absolute imports

David O'Regan requested to merge absolute-imports into master

A tiny MVC for: #25 (closed)

Changes needed to support this:

  1. Set alias inside the vue.config.js
  2. Disable eslint rule: 'import/no-unresolved': 0, => this stops the linter complaining on a alias import
  3. 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 insrc/components`
  4. Update jest config to enable alias mapping:
"moduleNameMapper": {
    "~(.*)$": "<rootDir>/src/$1"
  },

Merge request reports