Skip to content

Commit

Permalink
feat(lint): adjust linter
Browse files Browse the repository at this point in the history
  • Loading branch information
duncdrum committed Apr 7, 2024
1 parent 03f9bd9 commit 9d4ccdf
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "weekly"
commit-message:
prefix: "chore(gha):"
15 changes: 12 additions & 3 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "", "release": "patch" }
]
},
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
},
["@semantic-release/exec", {
"prepareCmd": "ant -Dapp.version=${nextRelease.version}"
}],
Expand All @@ -13,9 +22,9 @@
["@semantic-release/github", {
"assets": [
{
"path": "build/administrative-timeline-*.xar",
"name": "administrative-timeline-${nextRelease.version}.xar",
"label": "Expath package (administrative-timeline-${nextRelease.version}.xar)"
"path": "build/administrative-timeline.xar",
"name": "administrative-timeline.xar",
"label": "Expath package (administrative-timeline.xar)"
}
]
}]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Source data for [Administrative Timeline of the Department of State](https://his

Releases for this data package are automated. Any commit to the `master`` branch will trigger the release automation.
All commit message must conform to [Angular Commit Message Conventions](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) to determine semantic versioning of releases, please adhere to these conventions, like so:
All commit message must conform to [Conventional Commit Messages](https://www.conventionalcommits.org/en/v1.0.0/) to determine semantic versioning of releases, please adhere to these conventions, like so:
| Commit message | Release type |
|-----------------|--------------|
Expand Down
8 changes: 8 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-max-line-length': [1, 'always', 200],
'type-empty': [1, 'never'],
'subject-empty': [1, 'never']
}
}
1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

0 comments on commit 9d4ccdf

Please sign in to comment.