Skip to content

Commit

Permalink
refactor: commitlint setup
Browse files Browse the repository at this point in the history
  • Loading branch information
wozjac committed Jun 20, 2024
1 parent 3dd1dd2 commit 469f053
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- name: ESlint
run: npm run eslint
- name: Commitlint
uses: wagoid/commitlint-github-action@v2
uses: wagoid/commitlint-github-action@v6
with:
configFile: "./config/commitlint.config.js"
configFile: "./config/commitlint.config.mjs"
- name: Markdownlint
run: npm run markdownlint
1 change: 0 additions & 1 deletion config/commitlint.config.js

This file was deleted.

1 change: 1 addition & 0 deletions config/commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ["@commitlint/config-conventional"] };
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"rimraf": "./node_modules/rimraf/bin.js",
"eslint": "eslint -c config/.eslintrc.json --ignore-path config/.eslintignore ./src/**/*.js",
"lint": "npm run eslint && npm run commitlint && npm run markdownlint",
"commitlint": "npx commitlint --from HEAD~1 --to HEAD --verbose -g ./config/commitlint.config.js",
"commitlint": "npx commitlint --from HEAD~1 --to HEAD --verbose -g ./config/commitlint.config.mjs",
"markdownlint": "npx markdownlint -c ./config/markdownlint.json **/*.md",
"pretest": "npm run compile",
"sed": "sed -i 's/\\.\\.\\///g' ./out/coverage/lcov.info",
Expand Down

0 comments on commit 469f053

Please sign in to comment.