eslint-import-resolver-babel-root-import-fixed

1.0.4 • Public • Published

eslint-import-resolver-babel-root-import-fixed

NPM

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

Installation

npm install --save-dev eslint-plugin-import eslint-import-resolver-babel-root-import-fixed

Usage

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

"settings": {
  "import/resolver": {
    "node": {},
    "eslint-import-resolver-babel-root-import-fixed": {}
  }
}

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

Example

{
  "xo": {
    "extends": "prettier",
    "plugins": ["prettier"],
    "parser": "babel-eslint",
    "parserOptions": {
      "sourceType": "module"
    },
    "rules": {},
    "settings": {
      "import/resolver": {
        "node": {},
        "eslint-import-resolver-babel-root-import-fixed": {}
      }
    }
  }
}

License

MIT, see LICENSE.md for details.

Package Sidebar

Install

npm i eslint-import-resolver-babel-root-import-fixed

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

9.08 kB

Total Files

10

Last publish

Collaborators

  • vblitz