5.3.2 • Published 2 years ago

eslint-import-resolver-babel-module v5.3.2

Weekly downloads
243,599
License
MIT
Repository
github
Last release
2 years ago

eslint-import-resolver-babel-module

npm Build Status Coverage Status

A babel-plugin-module-resolver resolver for eslint-plugin-import

Installation

npm install --save-dev eslint-plugin-import eslint-import-resolver-babel-module

Usage

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

"settings": {
  "import/resolver": {
    "babel-module": {}
  }
}

And see babel-plugin-module-resolver to know how to configure your aliases.

Example

{
  "extends": "airbnb",
  "rules": {
    "comma-dangle": 0
  },
  "settings": {
    "import/resolver": {
      "babel-module": {}
    }
  }
}

Directory Imports

Some babel plugins like babel-plugin-import-directory or babel-plugin-wildcard allow to import directories (i.e. each file inside a directory) as an object. In order to support this, you can activate the allowExistingDirectories option as follows:

"settings": {
  "import/resolver": {
    "babel-module": { allowExistingDirectories: true }
  }
}

Now when you import a directory like this, the ESLint plugin won't complain and recognize the existing directory:

import * as Items from './dir';

License

MIT, see LICENSE.md for details.

@fiuzagr/boot@grenadierjs/eslint-config@rolo-chat/eslint-config-frontend@rolo-chat/eslint-config-backendvp-desktop@vitbokisch/eslint-config-import@julienpapini/react-scripts@xr4z0r/react-scripts@teachers/eslint-config-tpt-typescript@infinitebrahmanuniverse/nolb-eslint-i@wumijs/eslint-confighulionjs@everything-registry/sub-chunk-1609@peakfijn/config-eslint-exposvmx-react-scriptswolox-react-scriptswheelhouse-lintersaas-wxappreact-web-animationstandard-esnextsx-config@primerai/eslint-config-sentio-appmtva-teleport-tool@bytesquid/eslint-configirvinggiri-kurm-maxline-eslint-configluga-jest-presetoryx-eslint-confignode-promise-processq3-ui-eslintreact-navigation-addons-sebreact-navigation-enhancersreact-navigation-komect-addonsreadable-codereformogentrafi-tk@argodevops/eslint-config@arlyon/eslint-config@alphpaca/sylius-ui@alleyinteractive/eslint-config@bakerface/eslint-config-common@betgames/lint-client@buildersbank/eslint-config-builders@brixtol/eslint-config-javascript@brudi-toolbox/node-dev@cat-org/eslint-config-cat@brightsole/eslint-config-lint-front@canx/eslint-config@15gifts/eslint-config@dcl/eslint-config@deboxsoft/devel-core@deboxsoft/eslint-config-devel@dcm/eslint-config@dfds-ui/eslint-config@digigov/cli-lint@digigov/devydlmwebydl-mobilewebpack-util@dword-design/eslint-config@dword-design/eslint-config-fp@dword-design/base-core@dword-design/base-lint@dword-design/base-type-fp@groupher/eslint-config-web@gretzky/eslint-config@hannohealth/eslint-config@hammerframework/eslint-config-hammer@hydrogenjs/eslint-config-react@flumens/eslint-config@elliemae/pui-cli@inspiraller/create-css-vars@live/eslint-config@lodgify/eslint-config@kiwicom/eslint-config@iopipe/eslint-config-iopipe@irvingjs/core@lxghtless/react-scripts@manomano/eslint-config@myetherwallet/eth2-keystore@muchobien/eslint-config-react-native@myparcel/eslint-config@n3/eslint-config@nake/eslint-config@nicepack/eslint-ts@earlorg/eslint-config@e1011/eslint-config@easynm/eslint-config@eelkeblok/harbor@meepshop/eslint-config-meepshop@mikojs/eslint-config-base@mikojs/eslint-config-cat@mattermarkstudios/dreact@jbknowledge/eslint-config@jeffreyzzzs/eslint-ts@platformbuilders/eslint-config-builders@redwoodjs/eslint-config@riqra/eslint-config-react@podlipny/eslint-config
5.3.2

2 years ago

5.3.1

4 years ago

5.3.0

4 years ago

5.2.0

4 years ago

5.1.2

5 years ago

5.1.1

5 years ago

5.1.0

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

5.0.0-beta.1

6 years ago

5.0.0-beta.0

7 years ago

4.0.0

7 years ago

4.0.0-beta.5

7 years ago

4.0.0-beta.4

7 years ago

4.0.0-beta.3

7 years ago

4.0.0-beta.2

8 years ago

4.0.0-beta.1

8 years ago

4.0.0-beta.0

8 years ago

3.0.0

8 years ago

2.2.1

8 years ago

2.2.0

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

3.0.0-beta.1

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago