From 0532e670568ebffc655501419a71a83c717c9a43 Mon Sep 17 00:00:00 2001 From: kangod Date: Sat, 17 Feb 2024 19:27:50 +0800 Subject: [PATCH] =?UTF-8?q?config:=20=E4=BF=AE=E6=94=B9=20prettier=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 21 +++++++++++++++++++++ .prettierrc.js | 26 -------------------------- 2 files changed, 21 insertions(+), 26 deletions(-) create mode 100644 .prettierrc delete mode 100644 .prettierrc.js diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..1cc9a5d --- /dev/null +++ b/.prettierrc @@ -0,0 +1,21 @@ +{ + "singleQuote": true, + "trailingComma": "all", + "printWidth": 100, + "proseWrap": "never", + "endOfLine": "auto", + "semi": true, + "tabWidth": 4, + "htmlWhitespaceSensitivity": "strict", + "overrides": [ + { + "files": "*rc", + "options": { + "parser": "json" + } + } + ], + "plugins": [ + "prettier-plugin-tailwindcss" + ] +} diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index 2d0c1e3..0000000 --- a/.prettierrc.js +++ /dev/null @@ -1,26 +0,0 @@ -/** @format */ -module.exports = { - singleQuote: true, - trailingComma: "all", - printWidth: 100, - proseWrap: "never", - endOfLine: "auto", - semi: true, - tabWidth: 4, - vueIndentScriptAndStyle: true, - htmlWhitespaceSensitivity: "strict", - overrides: [ - { - files: ".prettierrc", - options: { - parser: "json", - }, - }, - { - files: "document.ejs", - options: { - parser: "html", - }, - }, - ], -};