mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 13:48:14 +00:00
33 lines
624 B
JavaScript
33 lines
624 B
JavaScript
export default {
|
|
extends: ['@commitlint/config-conventional'],
|
|
formatter: '@commitlint/format',
|
|
ignores: [
|
|
/** @param {string} message */
|
|
(message) => {
|
|
const lower = message.toLowerCase().trim();
|
|
return ['wip'].some(word => lower.startsWith(word));
|
|
},
|
|
],
|
|
rules: {
|
|
'scope-enum': [2, 'always', [
|
|
'cd',
|
|
'ci',
|
|
'core',
|
|
'docs',
|
|
'example/html',
|
|
'example/react',
|
|
'example/next',
|
|
'html',
|
|
'icons',
|
|
'packages',
|
|
'react-native',
|
|
'react',
|
|
'root',
|
|
'site',
|
|
'skins',
|
|
'test',
|
|
'utils',
|
|
]],
|
|
},
|
|
};
|