zenflow / eslint-config-zenflow

A standard eslint configuration
MIT License
1 stars 0 forks source link

eslint-config-zenflow

A good eslint configuration

npm version CI status Code Climate maintainability LGTM alerts Known Vulnerabilities

Features

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