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

eslint-config-bengler

Package Overview
Dependencies
Maintainers
4
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-bengler

Shared eslint configs for Bengler

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

eslint-config-bengler

Shared eslint rules for Bengler

Usage

npm i -D eslint-config-bengler

.eslintrc

A vanilla JavaScript project (ES6 / JavaScript 2015)

{
  "extends": [
    "bengler"
  ]
}

A React project

{
  "extends": [
    "bengler",
    "bengler/react",
  ]
}

Legacy ES5 projects

{
  "extends": [
    "bengler/es5"
  ]
}

Legacy overrides

To ease migration of existing projects to the shared eslint config, a set of rules are redefined from errors to warnings. These rules are defined in files in the ./legacy-overrides folder.

!IMPORTANT! Do not include any of these in new projects. They are going away eventually.

Example:

A legacy project that uses React:

{
  "extends": [
    "bengler",
    "bengler/legacy-overrides/base",
    "bengler/react",
    "bengler/legacy-overrides/react"
  ]
}

Keywords

FAQs

Package last updated on 25 Feb 2016

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