Skip to content

Commit

Permalink
fix(commitlint): "Lockfile is not up to date" issue on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mheob committed Feb 14, 2023
1 parent e1ee46b commit 1fb6dcb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
3 changes: 0 additions & 3 deletions packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
"lint": "eslint src/**/*.ts --fix",
"sort-package-json": "pnpm dlx sort-package-json"
},
"dependencies": {
"@commitlint/config-conventional": "^17.4.3"
},
"devDependencies": {
"@mheob/eslint-config": "workspace:*",
"@mheob/tsconfig": "workspace:*",
Expand Down
12 changes: 11 additions & 1 deletion packages/commitlint-config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,18 @@ function getIssue() {
}

const options: UserConfig = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
'header-max-length': [2, 'always', 100],
'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'subject-max-length': [2, 'always', 72],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
Expand Down
18 changes: 0 additions & 18 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 1fb6dcb

Please sign in to comment.