Soviut / vite-vue3-template

Vite, Vue3, Vue Router 4, Pinya, TypeScript, ESLint, Prettier, ViTest, Tailwind
4 stars 0 forks source link

Install eslint-plugin-prettier to run prettier rules on precommit hook #121

Closed Soviut closed 2 months ago

Soviut commented 5 months ago

https://github.com/prettier/eslint-plugin-prettier

npm install -D eslint-plugin-prettier

.eslintrc

extends: [
  'plugin:prettier/recommended',
]

and remove prettier from extends!!!!!!!!!!!!

Also, add .mjs, .mts, .cjs, .mjs to eslint script in package.json. Or just remove the --ext entirely.