chore: enforce commit message conventions (#6577)
* chore: enforce commit message conventions * docs: add link to contributing in README
This commit is contained in:
25
.commitlintrc.json
Normal file
25
.commitlintrc.json
Normal 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
6
.huskyrc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "lint-staged",
|
||||||
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
||||||
|
}
|
||||||
|
}
|
||||||
3
.lintstagedrc
Normal file
3
.lintstagedrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"*.js": "eslint"
|
||||||
|
}
|
||||||
@@ -57,6 +57,9 @@ Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes
|
|||||||
- [Setting up](docs/development/setting-up.md)
|
- [Setting up](docs/development/setting-up.md)
|
||||||
- [Scripts](docs/development/scripts.md)
|
- [Scripts](docs/development/scripts.md)
|
||||||
|
|
||||||
|
#### Contributing
|
||||||
|
- [Contributing](https://github.com/swagger-api/.github/blob/master/CONTRIBUTING.md)
|
||||||
|
|
||||||
##### Integration Tests
|
##### Integration Tests
|
||||||
|
|
||||||
You will need JDK of version 7 or higher as instructed here
|
You will need JDK of version 7 or higher as instructed here
|
||||||
|
|||||||
1376
package-lock.json
generated
1376
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -107,6 +107,8 @@
|
|||||||
"@babel/preset-env": "=7.12.1",
|
"@babel/preset-env": "=7.12.1",
|
||||||
"@babel/preset-react": "=7.12.1",
|
"@babel/preset-react": "=7.12.1",
|
||||||
"@babel/register": "=7.12.1",
|
"@babel/register": "=7.12.1",
|
||||||
|
"@commitlint/cli": "^11.0.0",
|
||||||
|
"@commitlint/config-conventional": "^11.0.0",
|
||||||
"@jest/globals": "=26.6.1",
|
"@jest/globals": "=26.6.1",
|
||||||
"@release-it/conventional-changelog": "=1.1.4",
|
"@release-it/conventional-changelog": "=1.1.4",
|
||||||
"autoprefixer": "^9.0.0",
|
"autoprefixer": "^9.0.0",
|
||||||
@@ -138,6 +140,7 @@
|
|||||||
"file-loader": "^6.0.0",
|
"file-loader": "^6.0.0",
|
||||||
"git-describe": "^4.0.4",
|
"git-describe": "^4.0.4",
|
||||||
"http-server": "^0.12.3",
|
"http-server": "^0.12.3",
|
||||||
|
"husky": "=4.3.0",
|
||||||
"ignore-assets-webpack-plugin": "^2.0.1",
|
"ignore-assets-webpack-plugin": "^2.0.1",
|
||||||
"inspectpack": "=4.5.2",
|
"inspectpack": "=4.5.2",
|
||||||
"jest": "=25.5.4",
|
"jest": "=25.5.4",
|
||||||
@@ -147,6 +150,7 @@
|
|||||||
"json-server": "^0.15.0",
|
"json-server": "^0.15.0",
|
||||||
"less": "^3.11.2",
|
"less": "^3.11.2",
|
||||||
"license-checker": "^25.0.0",
|
"license-checker": "^25.0.0",
|
||||||
|
"lint-staged": "=10.4.2",
|
||||||
"mini-css-extract-plugin": "^1.0.0",
|
"mini-css-extract-plugin": "^1.0.0",
|
||||||
"mocha": "=7.2.0",
|
"mocha": "=7.2.0",
|
||||||
"nightwatch": "^1.3.6",
|
"nightwatch": "^1.3.6",
|
||||||
|
|||||||
Reference in New Issue
Block a user