Socket
Book a DemoInstallSign in
Socket

@substantial/eslint-config

Package Overview
Dependencies
Maintainers
10
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@substantial/eslint-config

Substantial's minimal eslint config

1.1.1
latest
Source
npmnpm
Version published
Maintainers
10
Created
Source

@substantial/eslint-config

CircleCI

A base, hopefully non-controversial eslint config for our projects.

Installation

$ yarn add --dev @substantial/eslint-config eslint-config-prettier eslint-plugin-prettier

For jest also run:

$ yarn add --dev eslint-plugin-jest

For react also run:

$ yarn add --dev eslint-config-react-app @typescript-eslint/eslint-plugin @typescript-eslint/parser babel-eslint eslint-plugin-flowtype eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks

Usage

Add this to your eslint config, leaving out any configs that do not apply to your project:

{
  "extends": [
    "@substantial/eslint-config",
    "@substantial/eslint-config/react",
  ],

  "overrides": [
    {
      "files": ["**/*.test.[jt]s?(x)"],
      "extends": [
          "@substantial/eslint-config/jest"
      ]
    }
  ]
}

Details

@substantial/eslint-config

Uses eslint:recommended as well as some of the TypeScript overrides from eslint-config-react-app

@substantial/eslint-config/react

Uses eslint-config-react-app

@substantial/eslint-config/jest

The usage guide assumes tests are in files ending in .test.js (or jsx, ts, tsx), but you may change the files override to anything you like.

FAQs

Package last updated on 31 Dec 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.