mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
cc765115b2
* ci: add husky with pre-commit and commit-msg hooks This change includes two new hooks as part of our GitHub workflow with husky: * `pre-commit`: Performs linting with golangci-lint and eslint/prettier * `commit-msg`: Ensures that the commit messages conform to our guidelines and will error and provide context to a user when they do not. The `prepare` command which has been included is executed each time a `yarn install` is executed. * ci: extend @commitlint/config-conventional configuration * fix: lint all dot js files
55 lines
1.5 KiB
JavaScript
55 lines
1.5 KiB
JavaScript
module.exports = {
|
|
extends: ["@commitlint/config-conventional"],
|
|
rules: {
|
|
"body-min-length": [2, "always", 20],
|
|
"header-case": [2, "always", "lower-case"],
|
|
"header-max-length": [2, "always", 72],
|
|
"type-enum": [
|
|
2,
|
|
"always",
|
|
["build", "ci", "docs", "feat", "fix", "perf", "refactor", "release", "revert", "test"],
|
|
],
|
|
"scope-enum": [
|
|
2,
|
|
"always",
|
|
[
|
|
"api",
|
|
"autheliabot",
|
|
"authentication",
|
|
"authorization",
|
|
"buildkite",
|
|
"bundler",
|
|
"cmd",
|
|
"codecov",
|
|
"commands",
|
|
"configuration",
|
|
"deps",
|
|
"docker",
|
|
"duo",
|
|
"go",
|
|
"golangci-lint",
|
|
"handlers",
|
|
"logging",
|
|
"middlewares",
|
|
"mocks",
|
|
"models",
|
|
"notification",
|
|
"npm",
|
|
"oidc",
|
|
"regulation",
|
|
"renovate",
|
|
"reviewdog",
|
|
"server",
|
|
"session",
|
|
"storage",
|
|
"suites",
|
|
"templates",
|
|
"utils",
|
|
"web",
|
|
],
|
|
],
|
|
},
|
|
defaultIgnores: true,
|
|
helpUrl: "https://www.authelia.com/docs/contributing/commitmsg-guidelines.html",
|
|
};
|