5.3.2 • Published 1 year ago

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

Weekly downloads
243,599
License
MIT
Repository
github
Last release
1 year 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@redwoodjs/eslint-config@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-expogiri-kurluga-jest-presetm-maxline-eslint-configirvingmtva-teleport-toolnode-promise-process@riqra/eslint-config-react@pareto-engineering/eslint-config@podlipny/eslint-config@toolbarthomas/harbor@tunnckocore/config@styled-x/config@styledx/config@sylius-ui/frontend@tablecheck/eslint-config@shoutem/cli@sparing-software/eslint-config@platformbuilders/eslint-config-builders@shopgate/eslint-config@sproutsocial/eslint-config-seeds@sproutsocial/seeds-eslint-configwheelhouse-linterydl-mobileydlmwebwebpack-utilwolox-react-scriptsq3-ui-eslintsx-configsvmx-react-scripts@bakerface/eslint-config-commonoryx-eslint-configreact-navigation-enhancersreact-navigation-addons-sebreact-navigation-komect-addonsreadable-codereact-web-animationreformogentrafi-tksaas-wxappstandard-esnext@15gifts/eslint-config@alleyinteractive/eslint-config@alphpaca/sylius-ui@argodevops/eslint-config@easynm/eslint-config@dword-design/eslint-config@dword-design/eslint-config-fp@dword-design/base-core@dword-design/base-lint@dword-design/base-type-fp@earlorg/eslint-config@eelkeblok/harbor@elliemae/pui-cli@hannohealth/eslint-config@hammerframework/eslint-config-hammer@groupher/eslint-config-web@hydrogenjs/eslint-config-react@mattermarkstudios/dreact@lodgify/eslint-config@live/eslint-config@mikojs/eslint-config-base@mikojs/eslint-config-cat@manomano/eslint-config@inspiraller/create-css-vars@jbknowledge/eslint-config@jeffreyzzzs/eslint-ts@lxghtless/react-scripts@meepshop/eslint-config-meepshop@numacom/react-native-zendesk-sdk@dcm/eslint-config@dfds-ui/eslint-config@digigov/cli-lint@digigov/dev@dmsi/eslint-config@dcl/eslint-config@deboxsoft/devel-core@deboxsoft/eslint-config-devel@brixtol/eslint-config-javascript@buildersbank/eslint-config-builders@butterjs/eslint-config@brightsole/eslint-config-lint-front@brudi-toolbox/node-dev@bytesquid/eslint-config@combine-labs/forge@coverhound/eslint-config-coverhound
5.3.2

1 year ago

5.3.1

3 years ago

5.3.0

3 years ago

5.2.0

4 years ago

5.1.2

4 years ago

5.1.1

4 years ago

5.1.0

5 years ago

5.0.1

5 years ago

5.0.0

5 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

7 years ago

4.0.0-beta.1

7 years ago

4.0.0-beta.0

7 years ago

3.0.0

7 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