eslint-config-brainly

2.5.0 • Public • Published

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

Package Sidebar

Install

npm i eslint-config-brainly

Weekly Downloads

1,196

Version

2.5.0

License

MIT

Unpacked Size

36.5 kB

Total Files

11

Last publish

Collaborators

  • thomsa
  • krzotki
  • przytrzask
  • dawidel
  • tlukasik
  • andrzej_sala
  • jakpaw
  • katarzynatobis
  • bartoszlorek
  • brainly-user
  • sebastian.czoch
  • the_clx
  • dominika_p
  • matzimowski
  • elzbieta
  • malinicz
  • wro
  • fasosnql
  • patrycja.batko
  • tsdzw