eslint-config-cyprex
v1.1.2
Published
Cyprex shared eslint config
Downloads
8
Readme
ESLint Shared Configuration by Cyprex
Usage
npm i --save-dev eslint eslint-config-cyprex babel-eslint eslint-plugin-flowtype
- Create the
.eslintrc
file at the root of your project:{ "extends": "cyprex", // or if using React (dont forget to add eslint-plugin-react) "extends": "cyprex/react", }
- Add the lint script to your project:
{ "scripts": { "lint": "eslint --ext .js,.jsx ." } }
- Run
npm run lint