Skip to content

gabrielcsapo/eslint-import-resolver-ember

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-import-resolver-ember

🗺 import resolver for ember

Installation

npm install eslint-import-resolver-ember --save-dev

Usage

rules: {
  'import/no-unresolved': [2, { ignore: ['^\@ember', 'htmlbars-inline-precompile'] }]
},
settings: {
  'import/resolver': 'eslint-import-resolver-ember',
},

If you have custom paths that you would like to expose simply add options to settings:

settings: {
  'import/resolver': 'eslint-import-resolver-ember': {
    customModuleMapping: {
      'foo': '@gabrielcsapo/foo'
    },
    customPathMappings: {
      'testing-foo/*': 'testing-foo/addons/*'
    }
  },
},