From d862eb0d4d22d0af927efe2837331f41b1594954 Mon Sep 17 00:00:00 2001 From: sualko Date: Thu, 4 Jun 2020 10:06:57 +0200 Subject: [PATCH] chore: ignore tx-robot commits if linting --- .commitlintrc.json | 30 ------------------------------ commitlint.config.js | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 30 deletions(-) delete mode 100644 .commitlintrc.json create mode 100644 commitlint.config.js diff --git a/.commitlintrc.json b/.commitlintrc.json deleted file mode 100644 index d919cba..0000000 --- a/.commitlintrc.json +++ /dev/null @@ -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 - ] - } -} diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..16b128f --- /dev/null +++ b/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]')], +}; \ No newline at end of file