@somosyampi/eslint-config

Pacote de padronização de código padrão para os projetos Yampi usando Node.js
2,164
Install
npm install @somosyampi/eslint-config
Latest Version:3.0.1
License:MIT
Last Updated:Dec 19, 2024
Links: npm
Maintainer: suportecorp

@somosyampi/eslint-config

How to use

Install the package on your project

yarn add -D eslint \
  eslint-plugin-import \
  eslint-plugin-jest \
  eslint-config-airbnb-base \
  @somosyampi/eslint-config

Add the config on your .eslintrc.json file:

JavaScript

"extends": "@somosyampi/eslint-config"

Vue.js 2 + JavaScript1

"extends": "@somosyampi/eslint-config/vue"

Vue.js 3 + JavaScript1

"extends": "@somosyampi/eslint-config/vue3"

Vue.js 3 + TypeScript1

"extends": "@somosyampi/eslint-config/vue3-ts"

1 You need to install the package eslint-plugin-vue to use any of the Vue configurations (yarn add -D eslint-plugin-vue)

How to auto-format on save?

VS Code

Install VS Code ESLint extension

Add the following settings to your .vscode/settings.json:

{
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
      "source.fixAll.eslint": "explicit"
  },
  "eslint.format.enable": true,
  "[vue]": {
      "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
}

Related Packages

@so1ve/eslint-config-vue

Ray's eslint config for vue.

18,733 29
@tresinternet/eslint-config-vue3

Opinionated ESLint config for consistent, clean, auto-sorted code in TRES Vue3 a...

2,631
@planfredapp/eslint-config

Shared ESLint 10 flat configurations for Planfred projects

24,049
eslint-config-light-vue3

开箱即用的 Eslint 配置

19,634
@singularit/eslint-config-vue

@singularit/eslint-config-vue

16,863

Version History

Version Released License
3.0.1 MIT
3.0.0 MIT
2.0.0 MIT
1.0.0 MIT