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.0Add "extends": "brown" to your .eslintrc:
{
"extends": "brown",
"env": {
"browser": true // be sure to add this for frontend projects
},
"rules": {
// your overrides
}
}Additional extensions:
brown/cypressbrown/flowbrown/jestbrown/prettierbrown/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.jsonandpackage-lock.json - Bump version in
README.mdinstall instructions (for major and minor version bumps only) - Commit changes
- Tag new version
- Push master and tags to all remotes