eslint-config-alloy
Version:
AlloyTeam ESLint 规则
26 lines (19 loc) • 466 B
Markdown
# Example of using eslint in typescript-vue project
## What is inside
- Project initialized by `npm init vue@3` (2022-07-07)
- Update `.eslintrc.js` to extends `eslint-config-alloy`
- Add Prettier to format code
- Update `.vscode/settings.json` to enable `editor.formatOnSave` and `editor.codeActionsOnSave`
## Npm scripts
```shell
npm run dev
npm run build
```
```shell
npm run eslint
npm run eslint:fix
```
```shell
npm run prettier
npm run prettier:fix
```