@stone-ton/eslint-config-ton
v0.2.0
Published
> TODO: description
Downloads
762
Readme
@stone-ton/eslint-config-ton
Regras de lint compartilhadas da empresa TON
Configurar
Primeiro deve-se configurar o lint executando o comando abaixo e respondendo as perguntas no terminal:
npx eslint --init
Need to install the following packages:
eslint
Ok to proceed? (y)
You can also run this command directly using 'npm init @eslint/config'.
✔ How would you like to use ESLint? · style
✔ What type of modules does your project use? · esm
✔ Which framework does your project use? · none
✔ Does your project use TypeScript? · No / Yes
✔ Where does your code run? · node
✔ How would you like to define a style for your project? · guide
✔ Which style guide do you want to follow? · standard
✔ What format do you want your config file to be in? · JSON
Agora instale a extensão do lint com as regras do TON
npm install @stone-ton/eslint-config-ton --save-dev
e adicione no arquivo .eslintrc.json
{
"extends": [
"standard",
"@stone-ton/eslint-config-ton"
],
}