Browse Source

chore: ignore tx-robot commits if linting

pull/63/head
sualko 3 years ago
parent
commit
d862eb0d4d
  1. 30
      .commitlintrc.json
  2. 31
      commitlint.config.js

30
.commitlintrc.json

@ -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

@ -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]')],
};
Loading…
Cancel
Save