ESLint shareable con
Features
- Autofix also runs prettier
- React/JSX + React Hooks
- Sort Imports
- Filename conventions
- Promise best-practices
& much more
Install
$ npm install -D -E eslint prettier @canx/eslint-config
Usage
Add the ESLint config in your package.json
:
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": "@canx/eslint-config"
}
}
Or in .eslintrc.json
:
{
"extends": "@canx/eslint-config"
}