eslint-config-chisel
v3.0.0
Published
TODO
Downloads
103
Readme
eslint-config-chisel
Eslint config based on Aribnb config you can use with ES6. Integrates with Prettier.
Prettier
You'll have to install Prettier on your own in order to use it. It won't be included by default when you install this package. Don't hesitate to add your own .prettierrc
file to customise code formatting.
Installation
We recommend to use Yarn however you are free to use NPM. Snippet from the example below will install Eslint and Prettier as you'll need both of them to make use of this config.
yarn add --dev eslint prettier eslint-config-chisel
Usage
Add this to your .eslintrc
or other eslint configuration file:
{
"extends": "chisel"
}
React
Additional chisel/react
config is provided. It should be used instead of chisel
in React projects.
Nonstandard module resolution
This eslint config is monitoring if all imports/requires are resolving properly. It may not work if custom aliases (for example ~/
or @/
) are used. In such cases eslint-import-resolver-webpack should be added.