chore: ignore tx-robot commits if linting

pull/63/head
sualko 2020-06-04 10:06:57 +02:00
parent d744699f6b
commit d862eb0d4d
2 changed files with 31 additions and 30 deletions

View File

@ -1,30 +0,0 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"type-enum": [
2,
"always",
[
"l10n",
"release",
"build",
"ci",
"chore",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
"example"
]
],
"body-max-line-length": [
1,
"always",
100
]
}
}

31
commitlint.config.js Normal file
View File

@ -0,0 +1,31 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'l10n',
'release',
'build',
'ci',
'chore',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
'example',
],
],
'body-max-line-length': [
1,
'always',
100,
],
},
ignores: [commit => commit.startsWith('[tx-robot]')],
};