2.0.0 • Published 11 months ago
@yysmx/eslint-config-vue v2.0.0
@yysmx/eslint-config-vue
安装依赖
pnpm add -D eslint @yysmx/eslint-config-vue
安装插件
请在 vscode 中安装 Eslint
和 Prettier
插件
配置.eslintrc
{
"extends": ["@yysmx"]
}
配置.eslintignore
dist
public
在 package.json 中添加 script
例如:
{
"scripts": {
"lint": "eslint \"**/*.{vue,ts,js}\""
}
}
配置 vscode 保存时自动 fix
创建 .vscode/settings.json
{
"prettier.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
2.0.0
11 months ago