@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
@tresinternet/eslint-config-vue3
Opinionated ESLint config for consistent, clean, auto-sorted code in TRES Vue3 a...
2,631
Version History
| Version | Released | License |
|---|---|---|
| 3.0.1 | MIT | |
| 3.0.0 | MIT | |
| 2.0.0 | MIT | |
| 1.0.0 | MIT |