Dushenyan ESLint config presets
- Supports
vue
ts
js
pnpm add eslint -D
pnpm add @dushenyan/eslint-config -D
{
"extends":"@dushenyan"
}
{
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
The following configuration has been used and will be fixed automatically
used rules | explain |
---|---|
prefer-arrow-callback | 回调使用箭头函数 |
used rules | explain |
---|---|
semi | 禁止不必要的分号 |
used rules | explain |
---|---|
no-setup-props-destructure | (off)setup可以解构 |
multi-word-component-names | (off) 组价名可以简短 |
html-indent | template 缩进两列 |