@stone-ton/eslint-config-ton

0.2.0 • Public • Published

@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"
  ],
}

Readme

Keywords

none

Package Sidebar

Install

npm i @stone-ton/eslint-config-ton

Weekly Downloads

140

Version

0.2.0

License

MIT

Unpacked Size

4.89 kB

Total Files

4

Last publish

Collaborators

  • stonemaistech