Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@affinidi/eslint-config-react

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@affinidi/eslint-config-react

Affinidi's ESLint Configuration For React Projects

latest
Source
npmnpm
Version
2.0.0-beta.0
Version published
Maintainers
1
Created
Source

ESLint Config

Affinidi's ESLint Configuration For React Projects

Installation

npm install --save-dev @affinidi/eslint-config-react

Usage

// .eslintrc.js

module.exports = {
  extends: ['@affinidi/eslint-config-react'],
  parserOptions: {
    project: './tsconfig.eslint.json',
  },
}

It is reccommended that you have a separate tsconfig.eslint.json file that extends from your existing tsconfig.json file. This file will add .eslintrc.js to the "includes" property.

{
  "extends": "./tsconfig.json",
  "include": ["...", ".eslintrc.js"]
}

VS Code + Monorepos

VS Code's ESLint extension requires an additional setting to properly detect ESLint versions/installs/root paths. In a typical mono repo you can do the following:

"eslint.workingDirectories": [
  {
    "pattern": "./packages/*"
  }
]

For more details check out the extention's docs.

FAQs

Package last updated on 02 Oct 2020

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