duskmoon314 / vite-vue3-eslint-prettier

A vite+vue3+eslint+prettier attempt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A vite+vue3+eslint+prettier attempt


Languages

Language:Vue 65.1%Language:HTML 18.1%Language:JavaScript 13.6%Language:Shell 3.1%