eslint-plugin-app-store
ESlint plugin for apps in VTEX store.
Installation
You'll first need to install ESLint:
yarn add -D eslint
Next, install @vtex/eslint-plugin-app-store
:
$ yarn add -D @vtex/eslint-plugin-app-store
Usage
Recommended
For a quick configuration, extend our recommended configuration on your .eslintrc
file:
{
"extends": ["plugin:app-store/recommended"]
}
Custom
If you want to customize the rules, add app-store
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"app-store"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"app-store/rule-name": 2
}
}
Supported Rules
messages-prefix
no-deprecated-vtex-builders