Licence
MIT
Version
1.1.1
Deps
15
Size
8 kB
Vulns
0
Weekly
0
ctrl + ESLint config
O que inclui?
- Standard config base;
- React plugin;
- JSX a11y plugin;
- Prettier;
- Import Helpers;
Setup
- Instale as dependências
npm i -D eslint @ctrlmais/eslint-config
yarn add -D eslint @ctrlmais/eslint-config
- Crie um arquivo
.eslintrc.jsone adicione a configuração:
{
# Se estiver usando React
"extends": "@ctrlmais/eslint-config/react"
# Se estiver usando Node
"extends": "@ctrlmais/eslint-config/node"
}
Você também pode usar um
.eslintrc.jsem vez de JSON, se preferir.