Socket
Socket
Sign inDemoInstall

eslint-config-brigade

Package Overview
Dependencies
3
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-brigade

Brigade's ESLint configuration


Version published
Weekly downloads
38
increased by533.33%
Maintainers
3
Install size
11.2 MB
Created
Weekly downloads
 

Readme

Source

Brigade's ESLint configuration

This package provides Brigade's ESLint config (.eslintrc) as an extensible shared config.

Install

npm install --save-dev eslint-config-brigade

Usage

  1. Install the correct version of each package listed by the command:
npm info "eslint-config-brigade@latest" peerDependencies
  1. In your project's .eslintrc, use the extends feature:
{
  extends: 'eslint-config-brigade'
}

If you are using this in a project with React, extend the React configuration instead:

{
  extends: 'eslint-config-brigade/react'
}

If you disagree with any of our rules, simply override them locally in the rules section of your .eslintrc. For example, to allow not using semi-colons:

{
  rules: {
    'semi': 0, // 0 for off, 1 to warn, 2 to error
  }
}

Safe to use in production

Unlike many other configs, eslint-config-brigade should have no issue being installed in a production (NODE_ENV=production) environment.

FAQ

eslint-config-brigade breaks on npm2

eslint-config-brigade does NOT support npm2 and below. This is because npm3 changed the way the peerDependencies are handled compared to npm2, and we believe the npm2 implementation to sub-par, and supporting it requires package.json "hacks" that we don't like. eslint-config-brigade may work with npm2, but we offer no support if it does not.

NOTE: We have found that even if you are using npm2, you may be able to get the package to install properly if you use the yarn package manager instead. (We almost exclusively use yarn at Brigade; it is significantly faster than npm.)

Keywords

FAQs

Last updated on 21 Dec 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc