wip: Add commitlint

commitlint
Robert Dailey 2 years ago
parent 3df3bc869e
commit 27f4f60c58

@ -2,6 +2,7 @@
"recommendations": [ "recommendations": [
"ms-dotnettools.csharp", "ms-dotnettools.csharp",
"formulahendry.dotnet-test-explorer", "formulahendry.dotnet-test-explorer",
"editorconfig.editorconfig" "editorconfig.editorconfig",
"joshbolduc.commitlint"
] ]
} }

@ -1,2 +1,7 @@
# Required for running `Prepare-Release.ps1`
dotnet tool update --global GitVersion.Tool dotnet tool update --global GitVersion.Tool
Install-Module -Name ChangelogManagement Install-Module -Name ChangelogManagement
# Required for commitlint and other tooling provided by Node
npm install -g yarn
yarn install

@ -0,0 +1,26 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-case': [2, 'always', 'sentence-case'],
'subject-case': [2, 'always', 'sentence-case'],
'body-max-line-length': [1, 'always', 72],
'header-max-length': [1, 'always', 72],
'type-enum': [2, 'always', [
'build',
'change',
'chore',
'ci',
'deprecate',
'docs',
'feat',
'fix',
'perf',
'refactor',
'remove',
'revert',
'security',
'style',
'test'
]]
}
}

@ -0,0 +1,6 @@
{
"dependencies": {
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0"
}
}

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save