2.0.0 • Published 6 months ago

@iden3/eslint-config-react-ts v2.0.0

Weekly downloads
-
License
gpl-3.0
Repository
github
Last release
6 months ago

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 .