@hermeznetwork/eslint-config-hermez

1.1.0 • Public • Published

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 .

Readme

Keywords

Package Sidebar

Install

npm i @hermeznetwork/eslint-config-hermez

Weekly Downloads

3

Version

1.1.0

License

AGPL-3.0

Unpacked Size

13.3 kB

Total Files

4

Last publish

Collaborators

  • elias-garcia
  • davidsrz
  • krlosmata
  • albertoelias
  • davidrz
  • invocamanman
  • jbaylina