New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-warp

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-warp

WeAreReasonablePeople linting rules

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

WARP ESLint Configuration

npm install --save-dev eslint eslint-config-warp

Usage

Create a .eslintrc.json file in the project root containing the following:

Default usage

{
  "extends": ["warp"],
  "env": {
    "browser": true
  }
}

Always configure your environment.

Inside NodeJS ("env":{"node":true} is implied)

{
  "extends": ["warp/node"]
}

With ES6 support ("env":{"es6":true} is implied)

{
  "extends": ["warp/es6"]
}

ES6 module

{
  "extends": ["warp/module"]
}

Combining rulesets

{
  "extends": ["warp/node", "warp/es6"]
}

Overrides

  • You can use .eslintignore to ignore paths.
  • You can override rules inside your .eslintrc file.
  • You can use /*eslint rule:0*/ comments to override specific rules per file.
  • You can suppress eslint on a single line with //eslint-disable-line.
  • If you're confused: RTFM.

React JSX

npm install --save-dev eslint-config-standard-react
{
  "extends": ["warp/jsx"]
}

FAQs

Package last updated on 11 Jul 2017

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