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

eslint-config-warp

Package Overview
Dependencies
Maintainers
4
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

  • 7.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
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"]
}

Always configure your environment. We recommend doing so by using the appropriate preset:

Presets

This package comes with some additional presets to include in your eslint configuration. To include any of them, just add them to the extends Array. Note that order is important, because each preset overrides the previous. To allow you to configure a working load order, the table below provides hints.

PresetDescriptionLoad OrderDependencies
warpBase JavaScript (ES5) linting rulesFirst
warp/nodeLinting rules for Node.JSSoon after warpeslint-plugin-node
warp/es6Linting rules for ES6 language featuresSoon after warp
warp/jsxLinting rules for React JSXSoon after warpeslint-plugin-react eslint-plugin-react-hooks
warp/moduleLinting rules for modular JavaScriptNear the endeslint-plugin-import
warp/typescriptLinting rules for TypeScript files; implies warp/moduleNear the endeslint-plugin-import @typescript-eslint/eslint-plugin @typescript-eslint/parser

Example

To set up your ESLint for linting TypeScript modules for Node.JS:

{
  "extends": ["warp", "warp/node", "warp/typescript"],
  "parserOptions": {
    "project": "YOUR.tsconfig.json"
  }
}

FAQs

Package last updated on 23 Aug 2023

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