eslint-plugin-vtex
v2.3.0
Published
VTEX's ESLint plugin
Downloads
36,669
Maintainers
Readme
eslint-plugin-vtex
This package provides VTEX's custom ESLint rules.
Installation
Give that you already have ESLint installed, run:
yarn add -D eslint-plugin-vtex
Usage
After installing the module, just add it to your plugins
array inside your .eslintrc
.
// .eslintrc
{
...,
"plugins": ["vtex"]
}
Rules
This plugin provides the following custom ESLint rules:
prefer-early-return
: Suggest early returning to prevent nesting and improve code readability.enforce-explicit-enum-values
: Enforce explicit enum values.