@bullhorn/eslint-plugin-bullhorn
v0.2.0
Published
An opinionated ESLint rules from Github used by Bullhorn.
Downloads
3
Readme
eslint-config-bullhorn
This package provides Bullhorn's .eslintrc as an extensible shared config.
Usage
We export three ESLint configurations for your usage.
eslint-config-bullhorn
Our default export contains all of our ESLint rules, including EcmaScript 6+
and React. It requires eslint
.
npm install --save-dev eslint-config-bullhorn eslint
- add
"plugins": ["github"]
to your .eslintrc
Extend the configs you wish to use.
JSON ESLint config example:
{
"extends": ["plugin:bullhorn/recommended"]
}
The available configs are:
app
- Rules useful for bullhorn applications.
browser
- Useful rules when shipping your app to the browser.
recommended
- Recommended rules for every application.
typescript
- Useful rules when writing TypeScript.
See ESlint config docs for more information.