Skip to content

Commit

Permalink
feat: commit-lint use conventional-commit rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Dec 24, 2020
1 parent 138c4c2 commit 03dc5cd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 35 deletions.
36 changes: 1 addition & 35 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
{
"rules": {
"body-leading-blank": [1, "always"],
"body-max-line-length": [2, "always", 100],
"footer-leading-blank": [1, "always"],
"footer-max-line-length": [2, "always", 100],
"header-max-length": [2, "always", 100],
"scope-case": [2, "always", "lower-case"],
"subject-case": [2, "never",
[
"sentence-case",
"start-case",
"pascal-case",
"upper-case"
]
],
"subject-empty": [2, "never"],
"subject-full-stop": [2, "never", "."],
"type-case": [2, "always", "lower-case"],
"type-empty": [2, "never"],
"type-enum": [2, "always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test"
]
]
}
"extends": ["@commitlint/config-conventional"]
}
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@exadel/server-sketch": "git+https://github.com/exadel-inc/server-sketch.git",
"@juggle/resize-observer": "^3.2.0",
"@types/jest": "^26.0.17",
Expand Down

0 comments on commit 03dc5cd

Please sign in to comment.