Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/duskmoon314/vite-vue3-eslint-prettier

A vite+vue3+eslint+prettier attempt
https://github.com/duskmoon314/vite-vue3-eslint-prettier

Last synced: 2 months ago
JSON representation

A vite+vue3+eslint+prettier attempt

Awesome Lists containing this project

README

        

# vite vue3 eslint prettier

A template of vite + vue3 project with eslint and prettier

`husky` and `lint-staged` are installed to force style

A simple Github Action to run `npm run build`, and configs of Renovate

## Develop

### `dev`

`vite`

Start vite dev server

### `build`

`vite build`

Build into `dist/`

### `serve`

`vite preview`

### `lint`

`eslint --ext .js,.vue src`

Check if any code does not comply with the rules

### `lint:fix`

`eslint --ext .js,.vue src --fix`

Not only check, but also fix

### `format`

`prettier --write .`

Use prettier to format