Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-brainly

Package Overview
Dependencies
Maintainers
8
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-brainly

Brainly's base shareable ESLint config

  • 2.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
623
decreased by-3.71%
Maintainers
8
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 01 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc