diff --git a/README.md b/README.md index 6f70425..e69de29 100644 --- a/README.md +++ b/README.md @@ -1,39 +0,0 @@ -# vue-template - -This template should help get you started developing with Vue 3 in Vite. - -## Recommended IDE Setup - -[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). - -## Type Support for `.vue` Imports in TS - -TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types. - -## Customize configuration - -See [Vite Configuration Reference](https://vite.dev/config/). - -## Project Setup - -```sh -pnpm install -``` - -### Compile and Hot-Reload for Development - -```sh -pnpm dev -``` - -### Type-Check, Compile and Minify for Production - -```sh -pnpm build -``` - -### Lint with [ESLint](https://eslint.org/) - -```sh -pnpm lint -``` diff --git a/eslint.config.ts b/eslint.config.ts index 18d4062..a0742b2 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -1,4 +1,4 @@ -import skipFormatting from '@vue/eslint-config-prettier/skip-formatting' +import prettierConfig from '@vue/eslint-config-prettier' import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript' import importPlugin from 'eslint-plugin-import' import prettierPlugin from 'eslint-plugin-prettier' @@ -26,6 +26,7 @@ export default defineConfigWithVueTs( prettier: prettierPlugin, }, rules: { + 'prettier/prettier': 'error', 'import/order': [ 'error', { @@ -40,5 +41,5 @@ export default defineConfigWithVueTs( }, }, - skipFormatting, + prettierConfig, ) diff --git a/tsconfig.node.json b/tsconfig.node.json index a83dfc9..1c24f5f 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,5 +1,5 @@ { - "extends": "@tsconfig/node22/tsconfig.json", + "extends": "./tsconfig.json", "include": [ "vite.config.*", "vitest.config.*",