https://github.com/cantonjs/eslint-config-cantonjs-resolver
ESLint shareable config for the Cantonjs JavaScript style guide with resolver
https://github.com/cantonjs/eslint-config-cantonjs-resolver
eslint import javascript lint resolver
Last synced: 19 days ago
JSON representation
ESLint shareable config for the Cantonjs JavaScript style guide with resolver
- Host: GitHub
- URL: https://github.com/cantonjs/eslint-config-cantonjs-resolver
- Owner: cantonjs
- License: mit
- Created: 2017-12-28T11:18:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-13T15:08:19.000Z (about 8 years ago)
- Last Synced: 2025-10-26T21:39:04.321Z (7 months ago)
- Topics: eslint, import, javascript, lint, resolver
- Language: JavaScript
- Size: 43 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-cantonjs-resolver
[](https://travis-ci.org/cantonjs/eslint-config-cantonjs-resolver)
> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for the Cantonjs, with [import/resolver](https://github.com/benmosher/eslint-plugin-import)
## Installation
```
$ npm install --save-dev eslint eslint-config-cantonjs-resolver
```
You may also need to add [babel-plugin-module-resolver](https://github.com/tleunen/babel-plugin-module-resolver) and [webpack](https://github.com/webpack/webpack)
## Usage
Once the `eslint-config-cantonjs-resolver` package is installed, you can use it by specifying `cantonjs-resolver` in the [`extends`](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) section of your [ESLint configuration](http://eslint.org/docs/user-guide/configuring).
```js
{
"extends": "cantonjs-resolver",
"rules": {
// Additional, per-project rules...
}
}
```
**Note** You may also need to config [babel-plugin-module-resolver](https://github.com/tleunen/babel-plugin-module-resolver/blob/master/DOCS.md) and [webpack resolve](https://webpack.js.org/configuration/resolve/) to make resolvers work
## Configures / Extends
- `extends: "cantonjs-resolver"` [eslint-config-cantonjs](https://github.com/cantonjs/eslint-config-cantonjs) + [import/resolver](https://github.com/benmosher/eslint-plugin-import)
- `extends: "cantonjs-resolver/base"` the same with `extends: "cantonjs-resolver"`
- `extends: "cantonjs-resolver/react-resolve"` `base` + `react` + [import/resolver](https://github.com/benmosher/eslint-plugin-import)
## Related Projects
- [eslint-config-cantonjs](https://github.com/cantonjs/eslint-config-cantonjs)
## License
MIT © Cantonjs