From 3679924a6ad3575ff90a19af500601e7e0a5600c Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Mon, 21 Apr 2025 03:40:36 +0800 Subject: [PATCH] update config, --- 002_source/cms/prettier.config.mjs | 8 ++++++++ 002_source/cms/tsconfig.json | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/002_source/cms/prettier.config.mjs b/002_source/cms/prettier.config.mjs index 3f8fb29..39fc458 100644 --- a/002_source/cms/prettier.config.mjs +++ b/002_source/cms/prettier.config.mjs @@ -29,6 +29,14 @@ const config = { '^[./]', ], plugins: ['@ianvs/prettier-plugin-sort-imports'], + overrides: [ + { + files: ['*.tsx'], + options: { + singleAttributePerLine: true, + }, + }, + ], }; export default config; diff --git a/002_source/cms/tsconfig.json b/002_source/cms/tsconfig.json index 92c39d0..d82ce56 100644 --- a/002_source/cms/tsconfig.json +++ b/002_source/cms/tsconfig.json @@ -47,6 +47,16 @@ "_del" // ], - "excludeFiles": ["*.bak", "*.log", "*.tmp", "*.bug", "*.del", "*.draft", "* copy *.tsx", "* copy.tsx"] + "excludeFiles": [ + // + "*.bak", + "*.log", + "*.tmp", + "*.bug", + "*.del", + "*.draft", + "* copy *.tsx", + "* copy.tsx" + ] } }