eslint-import-resolver-global-import

0.0.2 • Public • Published

eslint-import-resolver-babel-root-import

A babel-plugin-root-import resolver for eslint-plugin-import.

Installation

npm install --save-dev eslint-plugin-import eslint-import-resolver-global-import

Usage

Inside your .eslintrc file, pass this resolver to eslint-plugin-import:

settings: {
  'import/resolver': {
    'global-import': {
      root: __dirname,
      prefix: '@'
    }
  }
}

And see babel-plugin-root-import to know how to configure your prefix/suffix.

Example

{
  "extends": "airbnb",
  "rules": {},
  "settings": {
    "import/resolver": {
      "babel-plugin-root-import": {}
    }
  }
}

License

MIT, see LICENSE.md for details.

Package Sidebar

Install

npm i eslint-import-resolver-global-import

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • ivanzotov