2.5.0 • Published 4 years ago

eslint-config-brainly v2.5.0

Weekly downloads
648
License
MIT
Repository
github
Last release
4 years ago

eslint-config-brainly

npm

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-brainly

and 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

2.5.0

4 years ago

2.4.0

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago