diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..5e00251 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,9 @@ +// @ts-check + +/** @type {import("prettier").Config} */ +export default { + bracketSpacing: true, + singleQuote: false, + arrowParens: "avoid", + trailingComma: "none" +}; diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index bca4819..0000000 --- a/.prettierrc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "bracketSpacing": true, - "singleQuote": false, - "arrowParens": "avoid", - "trailingComma": "none", - "overrides": [ - { - "files": "*.html", - "options": { - "parser": "html" - } - } - ] -} \ No newline at end of file diff --git a/commitlint.config.js b/commitlint.config.js index 71bc373..870b95b 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,4 +1,4 @@ -module.exports = { +export default { ignores: [commit => commit.includes("init")], extends: ["@commitlint/config-conventional"], rules: { diff --git a/postcss.config.js b/postcss.config.js index 9ba5e24..8c96bb1 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,4 +1,4 @@ -module.exports = { +export default { plugins: { tailwindcss: {}, // 使用 cnjm-postcss-px-to-viewport 规避 postcss.plugin was deprecated 警告 diff --git a/tailwind.config.js b/tailwind.config.ts similarity index 57% rename from tailwind.config.js rename to tailwind.config.ts index ab03656..143b67f 100644 --- a/tailwind.config.js +++ b/tailwind.config.ts @@ -1,8 +1,9 @@ -/** @type {import('tailwindcss').Config} */ -module.exports = { +import type { Config } from "tailwindcss"; + +export default { content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"], theme: { extend: {} }, plugins: [] -}; +} satisfies Config;