Skip to content

Instantly share code, notes, and snippets.

😎
Constantly. Need. More. Fire.

Yerzhan tashbenbetov

😎
Constantly. Need. More. Fire.
Block or report user

Report or block tashbenbetov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tashbenbetov
tashbenbetov / commitizen.js
Last active Dec 1, 2018
Make commit great again. Commitizen config file
View commitizen.js
"use strict";
module.exports = {
// Добавим описание на русском языке ко всем типам
types: [
{
value: "build",
name: "build: Сборка проекта или изменения внешних зависимостей"
},
{ value: "ci", name: "ci: Настройка CI и работа со скриптами" },
@tashbenbetov
tashbenbetov / commitizen-package.json
Created Nov 18, 2018
Make commit great again. Package.json + Commitizen
View commitizen-package.json
{
"config": {
"commitizen": {
"path": "node_modules/cz-customizable"
},
"cz-customizable": {
"config": "config/git/commitizen.js"
}
},
}
@tashbenbetov
tashbenbetov / package.json
Last active Nov 20, 2018
medium-embed-package-json-example
View package.json
{
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS -g './config/git/commitlint.js'"
}
},
"devDependencies": {
@tashbenbetov
tashbenbetov / parser-preset.js
Last active Nov 17, 2018
medium-embed-commitlintrc-example
View parser-preset.js
module.exports = {
parserOpts: {
// https://commitlint.io - подробнее о соглашениях в commit-ах
headerPattern: /^([a-zа-яё()\s]*)(: MRKT-)(\d*)\s(.*)$/,
// fix(header): MRKT-750 Поправить ошибки в заголовках
headerCorrespondence: ["type+scope", "ticket", "subject"]
}
};
@tashbenbetov
tashbenbetov / commitlint.js
Last active Nov 20, 2018
Make commit great again. Commitlint config file
View commitlint.js
// Файл создан на основе @commitlint/config-conventional
module.exports = {
rules: {
// Тело коммита должно начинаться с пустой строки
"body-leading-blank": [2, "always"],
// Нижний колонтитул коммита должен начинаться с пустой строки
"footer-leading-blank": [2, "always"],
You can’t perform that action at this time.