@ctrlmais/eslint-config
v1.1.1
Published
ESLint configuration used by ctrl mais.
Downloads
11
Readme
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.json
e 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.js
em vez de JSON, se preferir.