1.1.0 • Published 3 years ago

@hermeznetwork/eslint-config-hermez v1.1.0

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
3 years ago

eslint-config-hermez

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

This config will ignore common directories in a React project created with create-react-app:

  • node-modules
  • build
  • public

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 @hermeznetwork/eslint-config-hermez

Then, create an .eslintrc.json file in your frontend project with this content:

{
  "extends": "@hermeznetwork/eslint-config-hermez"
}

Check that everything works fine:

eslint --ext .ts,.tsx .