Browse Source

chore: enforce commit message conventions (#6577)

* chore: enforce commit message conventions

* docs: add link to contributing in README
bubble
Tim Lai 3 years ago
committed by GitHub
parent
commit
9b0ff32364
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1439 additions and 22 deletions
  1. +25
    -0
      .commitlintrc.json
  2. +6
    -0
      .huskyrc
  3. +3
    -0
      .lintstagedrc
  4. +3
    -0
      README.md
  5. +1398
    -22
      package-lock.json
  6. +4
    -0
      package.json

+ 25
- 0
.commitlintrc.json 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
- 0
.huskyrc View File

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

+ 3
- 0
.lintstagedrc View File

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

+ 3
- 0
README.md 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


+ 1398
- 22
package-lock.json
File diff suppressed because it is too large
View File


+ 4
- 0
package.json 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",


Loading…
Cancel
Save