eslint-config-dribe
A shareable ESLint configuration used in Dribe's React web portals.
Assumptions
- You are using babel-eslint as your ESLint parser.
Installation
First install these ESLint
plugins:
npm i -D eslint-plugin-babel eslint-plugin-react eslint-plugin-promise
OR
yarn add eslint-plugin-babel eslint-plugin-react eslint-plugin-promise --dev
Then to install this package:
npm i -D @mutualmobile/eslint-config-dribe
OR
yarn add @mutualmobile/eslint-config-dribe --dev
Usage
Add these lines to your .eslintrc.json
in your root directory.
{
"extends": "@mutualmobile/eslint-config-dribe",
"plugins": ["babel", "react", "promise"]
}
Add these lines to your .eslintrc.json
in your testing directory.
{
"extends": [
"../.eslintrc.json",
"@mutualmobile/eslint-config-dribe/rules/test-rules"
]
}
Contributing
See CONTRIBUTING.md
Happy linting!