chore: enforce commit message conventions (#6577)

* chore: enforce commit message conventions

* docs: add link to contributing in README
This commit is contained in:
Tim Lai
2020-10-29 16:11:38 -07:00
committed by GitHub
parent 7a0c1ea556
commit 9b0ff32364
6 changed files with 1417 additions and 0 deletions

25
.commitlintrc.json Normal file
View File

@@ -0,0 +1,25 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"header-max-length": [
2,
"always",
69
],
"scope-case": [
2,
"always",
[
"camel-case",
"kebab-case",
"upper-case"
]
],
"subject-case": [
0,
"always"
]
}
}

6
.huskyrc Normal file
View File

@@ -0,0 +1,6 @@
{
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}

3
.lintstagedrc Normal file
View File

@@ -0,0 +1,3 @@
{
"*.js": "eslint"
}

View File

@@ -57,6 +57,9 @@ Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes
- [Setting up](docs/development/setting-up.md)
- [Scripts](docs/development/scripts.md)
#### Contributing
- [Contributing](https://github.com/swagger-api/.github/blob/master/CONTRIBUTING.md)
##### Integration Tests
You will need JDK of version 7 or higher as instructed here

1376
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -107,6 +107,8 @@
"@babel/preset-env": "=7.12.1",
"@babel/preset-react": "=7.12.1",
"@babel/register": "=7.12.1",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@jest/globals": "=26.6.1",
"@release-it/conventional-changelog": "=1.1.4",
"autoprefixer": "^9.0.0",
@@ -138,6 +140,7 @@
"file-loader": "^6.0.0",
"git-describe": "^4.0.4",
"http-server": "^0.12.3",
"husky": "=4.3.0",
"ignore-assets-webpack-plugin": "^2.0.1",
"inspectpack": "=4.5.2",
"jest": "=25.5.4",
@@ -147,6 +150,7 @@
"json-server": "^0.15.0",
"less": "^3.11.2",
"license-checker": "^25.0.0",
"lint-staged": "=10.4.2",
"mini-css-extract-plugin": "^1.0.0",
"mocha": "=7.2.0",
"nightwatch": "^1.3.6",