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

@iden3/eslint-config-react-ts

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iden3/eslint-config-react-ts

Strict & opinionated ESLint config for React/Typescript projects.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
4
Created
Source

eslint-config-react-ts

This repo contains an ESLint config to share across all the frontend projects in the ide3 organization. It has been designed to work with TypeScript and React.

This config will ignore common directories and files in a React project:

  • node-modules
  • package-lock.json

Setup

First of all, you will need to install the peerDependencies:

npm i react typescript eslint

After that, you'll be able to install the package without warnings:

npm i @iden3/eslint-config-react-ts

Then, create an .eslintrc.json file in your frontend project extending the config and specifying your build directory inside the ignorePatterns array:

{
  "extends": "@iden3/eslint-config-react-ts",
  "ignorePatterns": ["build"]
}

Finally, check that everything works fine by running:

eslint --ext .ts,.tsx .

Keywords

eslint

FAQs

Package last updated on 10 Nov 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