Socket
Socket
Sign inDemoInstall

eslint-config-warp

Package Overview
Dependencies
236
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-warp

WeAreReasonablePeople linting rules


Version published
Weekly downloads
23
decreased by-68.49%
Maintainers
4
Install size
28.6 kB
Created
Weekly downloads
 

Readme

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

Last updated on 23 Aug 2023

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