Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yagrrusso/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yagrrusso/eslint-config

ESLint config for Javascript/Typescript projects

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

YaGRRusso ESLInt Config

Configuração de ESLint para trabalhar com Javascript.

Configuração

1- Instale o pacote no seu projeto como dependência de desenvolvimento.

npm i -D eslint @yagrrusso/eslint-config

2- Crie um arquivo .eslintrc.json na raiz do seu projeto e extenda algum preset ESLint da biblioteca.

{
    "extends": ["@yagrrusso/eslint-config/html"]
    // "extends": ["@yagrrusso/eslint-config/react"]
    // "extends": ["@yagrrusso/eslint-config/node"]
}

3- Instale a extensão do ESLint no seu VSCode.

4- Configure o ESLint no seu VSCode no arquivo settings.json.

{
    "eslint.format.enable": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    }
}

Presets

Importe um dos presets da lista abaixo para o seu projeto.

Html/JS

Bibliotecas utilizadas nas configurações para HTML:

  • eslint
  • eslint-config-prettier
  • eslint-config-standard
  • eslint-plugin-html
  • eslint-plugin-import
  • eslint-plugin-prettier
  • eslint-plugin-promise
  • eslint-plugin-unused-imports
  • prettier

React/TS

Bibliotecas utilizadas nas configurações para React:

  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • eslint
  • eslint-config-prettier
  • eslint-config-standard
  • eslint-plugin-import
  • eslint-plugin-jsx-a11y
  • eslint-plugin-prettier
  • eslint-plugin-promise
  • eslint-plugin-react
  • eslint-plugin-react-hooks
  • eslint-plugin-unused-imports
  • prettier
  • eslint-config-next (NEXTJS)

Node/TS

Bibliotecas utilizadas nas configurações para Node:

  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • eslint
  • eslint-config-prettier
  • eslint-config-standard
  • eslint-plugin-import
  • eslint-plugin-n
  • eslint-plugin-prettier
  • eslint-plugin-promise
  • eslint-plugin-unused-imports
  • prettier

Keywords

FAQs

Package last updated on 04 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc