ESLint rules for Brown University projects using eslint-config-airbnb
as a base (with a few overrides), and exposing some additional extensions.
// npm
npm i -D eslint git+https://github.com/BrownUniversity/eslint-config-brown.git#^0.19.0
// yarn
yarn add -D eslint git+https://github.com/BrownUniversity/eslint-config-brown.git#^0.19.0
Add "extends": "brown" to your .eslintrc
:
{
"extends": "brown",
"env": {
"browser": true // be sure to add this for frontend projects
},
"rules": {
// your overrides
}
}
Additional extensions:
brown/cypress
brown/flow
brown/jest
brown/prettier
brown/vue
The brown/prettier
extension must come last in the "extends" array so it gets the chance to override other configs.
To publish a new version, do the following:
- Bump version in
package.json
andpackage-lock.json
- Bump version in
README.md
install instructions (for major and minor version bumps only) - Commit changes
- Tag new version
- Push master and tags to all remotes