1.1.2 • Published 7 years ago
eslint-config-cyprex v1.1.2
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