Skip to content

Commit bec2f46

Browse files
committed
chore: удалено правило commitlint, которое заставляло писать коммиты на русском языке
1 parent 4220fb4 commit bec2f46

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

commitlint.config.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
1-
// https://stackoverflow.com/a/40503617
2-
const isCyrillic = input => /[\u0400-\u04FF]+/.test(input)
3-
4-
const cyrillicRule = commit => {
5-
if (!commit.subject) {
6-
return [false, "Нет заголовка коммита"]
7-
}
8-
9-
if (!isCyrillic(commit.subject)) {
10-
return [false, "Заголовок коммита должен быть на русском языке"]
11-
}
12-
13-
return [true]
14-
}
15-
161
module.exports = {
172
extends: ["@commitlint/config-conventional"],
183
plugins: ["commitlint-plugin-function-rules"],
194
rules: {
20-
"subject-empty": [0],
21-
"function-rules/subject-empty": [2, "always", cyrillicRule],
225
"type-enum": [2, "always", ["feat", "fix", "docs", "style", "refactor", "test", "revert", "chore", "WIP"]]
236
}
247
}

0 commit comments

Comments
 (0)