eslint-config-brainly
v2.5.0
Published
Brainly's base shareable ESLint config
Readme
eslint-config-brainly
Brainly's base shareable ESLint config. It contains ESLint rules for ES6+ and flow - our standard setup for most of our current projects, both back-end and front-end.
If you're setting up a React project use eslint-config-brainly-react instead.
For legacy ES5 code use eslint-config-brainly-legacy.
Installation and usage
Install the eslint-config-brainly package with yarn/npm and make sure that
the peer dependencies are installed. In most cases (unless you need to have
full control over the eslint / eslit plugins versions) you can just rely on this
command:
npx install-peerdeps --dev eslint-config-brainlyand extend the "brainly" setup in your .eslintrc:
{
"extends": "brainly"
}Prettier
Since v2.0.0 this config enforces your project to use prettier. It includes eslint-config-prettier and eslint-plugin-prettier so you can just run eslint as usual and prettier will be used to reformat the code.
If you need to have actual .prettierrc file in your project you should extend the prettier.config.js from this package:
// .prettierrc.js or prettier.config.js in your project
module.exports = require('eslint-config-brainly/prettier.config');More tools config
Looking for more of our tools configs? Check out this readme.
License
MIT
