From 7e922ae50c4709c0b3247f11921d677f6b950e1a Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 10 Apr 2022 19:27:30 +0800 Subject: [PATCH] chore: update tsconfig.json --- .github/ISSUE_TEMPLATE/general.md | 2 +- tsconfig.json | 4 ++-- unocss.config.ts | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/general.md b/.github/ISSUE_TEMPLATE/general.md index e8fd7fa..14a4d76 100644 --- a/.github/ISSUE_TEMPLATE/general.md +++ b/.github/ISSUE_TEMPLATE/general.md @@ -7,6 +7,6 @@ assignees: '' --- -PLEASE READ: I originally made this template for myself to mocking up apps quicker. I am glad to see you are willing to give it a try! Before your open the issue, please make sure you are reporting bugs in the template itself. **I am NOT creating this template to solve the problems you faced in your project, please use Vue or Vite's discord server to ask questions (or it might be closed directly without further notice).** Thank you. +> PLEASE READ: I originally made this template for myself to mocking up apps quicker. I am glad to see you are willing to give it a try! Before your open the issue, please make sure you are reporting bugs in the template itself. **I am NOT creating this template to solve the problems you faced in your project, please use Vue or Vite's discord server to ask questions (or it might be closed directly without further notice).** Thank you. **Describe the bug/issue** diff --git a/tsconfig.json b/tsconfig.json index 644d40a..35a1521 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,11 +2,11 @@ "compilerOptions": { "baseUrl": ".", "module": "ESNext", - "target": "es2016", + "target": "ESNext", "lib": ["DOM", "ESNext"], "strict": true, "esModuleInterop": true, - "incremental": false, + "jsx": "preserve", "skipLibCheck": true, "moduleResolution": "node", "resolveJsonModule": true, diff --git a/unocss.config.ts b/unocss.config.ts index af0839e..fa5f7de 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -16,7 +16,10 @@ export default defineConfig({ ], presets: [ presetUno(), - presetAttributify(), + presetAttributify({ + prefix: 'un-', + prefixedOnly: true, + }), presetIcons({ scale: 1.2, warn: true,