Skip to content

Commit

Permalink
chore: 更新commitlint.config.js文件为esm语法
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Nov 10, 2023
1 parent 10e68d6 commit 5199a65
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dist
package.json
.eslintrc.cjs
.prettierrc.js
commitlint.config.cjs
commitlint.config.js
postcss.config.cjs
tailwind.config.ts
stylelint.config.cjs
Expand Down
5 changes: 4 additions & 1 deletion commitlint.config.cjs → commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
// @ts-check

/** @type {import("@commitlint/types").UserConfig} */
export default {
ignores: [commit => commit.includes("init")],
extends: ["@commitlint/config-conventional"],
rules: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"devDependencies": {
"@commitlint/cli": "^18.2.0",
"@commitlint/config-conventional": "^18.1.0",
"@commitlint/types": "^18.4.0",
"@faker-js/faker": "^8.2.0",
"@iconify-icons/ep": "^1.2.12",
"@iconify-icons/ri": "^1.2.10",
Expand Down
29 changes: 16 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5199a65

Please sign in to comment.