eslint-config-vtex-react

9.0.3 • Public • Published

eslint-config-vtex-react

This package provides VTEX's .eslintrc for React projects as an extensible shared config.

Not all React applications live in the same context, different rules are needed for different scenarios. To solve this, three presets are provided:

  • vtex-react - Base react configuration. Can be used in any React project.
  • vtex-react/io - To be used in VTEX IO React applications.
  • vtex-react/native - To be used in react-native applications.

Installation

Assuming you already have ESLint installed, run:

yarn add -D eslint-config-vtex-react typescript prettier

Usage

After installing the module, just add it to your extends array inside your .eslintrc.

// .eslintrc
{
  "extends": ["vtex-react"]
}

As any other eslint preset, it's possible to override some rules and configurations. We encourage trying to keep the closest possible to the preset rules, but every project is different and sometimes overriding is needed, use it carefully.

References

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-vtex-react

Weekly Downloads

6,692

Version

9.0.3

License

MIT

Unpacked Size

26.3 kB

Total Files

11

Last publish

Collaborators

  • vtexlab-user
  • lbebber
  • alcar
  • arturpimentel
  • felippenardi
  • alinevillaca
  • caio.oliveira
  • victorges
  • guilhermebruzzi
  • cmdalbem
  • iago
  • ntmedina
  • salesfelipe
  • diegoximenes
  • andreldsa
  • jgfidelis
  • vcalasans
  • thiagomurakami
  • marcoskwkm
  • lurian
  • rogerlucena
  • arthurepc
  • igorframos
  • gustavorosolem
  • analuizamtg
  • rafarubim
  • tergol
  • rafabac
  • bivillar
  • breno
  • guigs
  • daher
  • lucasecdb
  • victorhmp
  • marcosvcp
  • jeymisson
  • natalia_godot
  • tiagonapoli
  • r-araripe
  • augusto.lazaro
  • kaisermann
  • ericreis
  • athoscouto
  • tlgimenes
  • anitavincent
  • brunojdo
  • firstdoit
  • augustob
  • afonsopraca
  • amoreira
  • nandoacoelho
  • kevinchevallier
  • vitorlgomes
  • mateuspontes
  • alexalves2501
  • carolinerpessoa
  • evertonataide
  • gtkatakura
  • thor
  • kozlowaski