Files
feishin/commitlint.config.mjs
T
jeffvli 1e294c77f8 ci: skip weblate commits and fetch pre-push tip
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.
2026-08-25 20:50:58 -07:00

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;