Skip to content

Commit

Permalink
🧑‍💻 collapse commitlint config to single file
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Jan 22, 2025
1 parent 58e1b5d commit 2999092
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
6 changes: 0 additions & 6 deletions .commitlintparser.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .commitlintrc.cjs

This file was deleted.

12 changes: 12 additions & 0 deletions .commitlintrc.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default {
extends: ["gitmoji"],
parserPreset: {
parserOpts: {
headerPattern: /^[^ ]+ (.*)$/,
headerCorrespondence: ["subject"],
},
},
rules: {
"type-empty": [0, "always"],
},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"*": [
"prettier -luw"
],
"*.{js,cjs,ts,vue}": [
"*.{cts,ts,vue}": [
"eslint --fix"
]
},
Expand Down

0 comments on commit 2999092

Please sign in to comment.