mirror of
https://github.com/jeffvli/feishin.git
synced 2026-11-20 00:51:26 -08:00
Weblate translation pushes are not conventional, so ignore them. After a force-push the pre-push tip is unreachable from any ref, so commitlint cannot resolve the range without an explicit fetch.
36 lines
935 B
JavaScript
36 lines
935 B
JavaScript
/** @type {import('@commitlint/types').UserConfig} */
|
|
const config = {
|
|
extends: ['@commitlint/config-conventional'],
|
|
ignores: [(commit) => commit.includes('Translated using Weblate')],
|
|
rules: {
|
|
'scope-enum': [
|
|
2,
|
|
'always',
|
|
[
|
|
'api',
|
|
'ci',
|
|
'deps',
|
|
'i18n',
|
|
'library',
|
|
'lyrics',
|
|
'player',
|
|
'radio',
|
|
'release',
|
|
'remote',
|
|
'servers',
|
|
'sharing',
|
|
'tag-editor',
|
|
'theme',
|
|
'ui',
|
|
'visualizer',
|
|
'window',
|
|
],
|
|
],
|
|
'scope-case': [2, 'always', 'kebab-case'],
|
|
'subject-case': [2, 'never', ['pascal-case', 'upper-case']],
|
|
'body-max-line-length': [0],
|
|
},
|
|
};
|
|
|
|
export default config;
|