5.3.2 • Published 3 years ago

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

Weekly downloads
243,599
License
MIT
Repository
github
Last release
3 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-linterstandard-esnextsx-configirvingm-maxline-eslint-configluga-jest-presetreact-web-animation@warrify/eslint-config@willycamargo/eslint-config@wyny/eslint-config-web@wyny/eslint-web@tunnckocore/config@toolbarthomas/harbor@waavi/react-scripts@verypossible/eslint-config@pareto-engineering/eslint-config@numacom/react-native-zendesk-sdk@podlipny/eslint-config@overdose/config@platformbuilders/eslint-config-buildersfrost-eslintfruz-config@shopgate/eslint-config@styled-x/config@styledx/config@shoutem/cli@sproutsocial/eslint-config-seeds@sproutsocial/seeds-eslint-config@tablecheck/eslint-configdoctorlink-design-systemdreacteslint-plugin-instaworkeslint-config-metalabeslint-config-mcfeeslint-config-rainboweslint-config-reacheslint-config-reach-dragonflyeslint-config-react-3mergeeslint-config-react-shyneslint-config-readableeslint-config-tommydunneslint-config-none23babeleslint-config-nveslint-config-xmeslint-config-sno2wmaneslint-config-truestricteslint-config-shellthoreslint-config-sxt-engineeslint-config-taklaeslint-config-fornuxteslint-config-frosteslint-config-compono-uieslint-config-abysseslint-config-acceleratoreslint-config-cantonjs-resolvereslint-config-cateslint-config-build-engineeslint-config-15giftseslint-config-airpluseslint-config-churchie317eslint-config-pofigizmeslint-config-roloeslint-config-rqbazan-jseslint-config-sandi-baseeslint-config-sandi-tseslint-config-sandi-ts-cjseslint-config-sandi-ts-flateslint-config-scitenteslint-react-shyn@15gifts/eslint-config@brudi-toolbox/node-dev@brixtol/eslint-config-javascript@brightsole/eslint-config-lint-front@buildersbank/eslint-config-builders@butterjs/eslint-config@canx/eslint-config@cedarjs/eslint-config@cat-org/eslint-config-cat@betgames/lint-client@bakerface/eslint-config-commonconsequuntursedce-webpackbeauty-webpack-v1devbundle-eslint-typescript
5.3.2

3 years ago

5.3.1

5 years ago

5.3.0

5 years ago

5.2.0

5 years ago

5.1.2

6 years ago

5.1.1

6 years ago

5.1.0

7 years ago

5.0.1

7 years ago

5.0.0

7 years ago

5.0.0-beta.1

7 years ago

5.0.0-beta.0

8 years ago

4.0.0

8 years ago

4.0.0-beta.5

8 years ago

4.0.0-beta.4

8 years ago

4.0.0-beta.3

8 years ago

4.0.0-beta.2

9 years ago

4.0.0-beta.1

9 years ago

4.0.0-beta.0

9 years ago

3.0.0

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

3.0.0-beta.1

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago