eslint-config-zenflow
v4.0.0
Published
A good eslint configuration
Downloads
249
Readme
eslint-config-zenflow
A good eslint configuration
Features
- Based on
eslint-config-react-app
prettier
integration usingeslint-plugin-prettier
&eslint-config-prettier
Install
Install packages:
npm install --save-dev eslint eslint-config-zenflow
# optional
npm install --save-dev typescript
Add .eslintrc
file:
{
"extends": ["zenflow"],
"rules": { /* custom rule configs here */ }
}
Add package "scripts"
:
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
"lint-fix": "npm run lint -- --fix",
Optional Configure Prettier to your taste.
Optional Copy the companion .editorconfig file to the root of your project.
Recommended Enable eslint integration in your IDE of choice