Skip to content

Commit

Permalink
refactor: 配置文件改为 ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
yulimchen committed May 19, 2024
1 parent b28c5a7 commit 5353749
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 19 deletions.
9 changes: 9 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-check

/** @type {import("prettier").Config} */
export default {
bracketSpacing: true,
singleQuote: false,
arrowParens: "avoid",
trailingComma: "none"
};
14 changes: 0 additions & 14 deletions .prettierrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
ignores: [commit => commit.includes("init")],
extends: ["@commitlint/config-conventional"],
rules: {
Expand Down
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
plugins: {
tailwindcss: {},
// 使用 cnjm-postcss-px-to-viewport 规避 postcss.plugin was deprecated 警告
Expand Down
7 changes: 4 additions & 3 deletions tailwind.config.js → tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 5353749

Please sign in to comment.