chore(root): add commitlint (#129)

This commit is contained in:
Rahim
2025-10-24 16:46:47 -07:00
committed by GitHub
parent 24022e93c3
commit 5256112501
3 changed files with 555 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
export default {
extends: ['@commitlint/config-conventional'],
formatter: '@commitlint/format',
ignores: [
/** @param {string} message */
(message) => {
const lower = message.toLowerCase().trim();
return ['wip'].includes(lower);
},
],
rules: {
'scope-enum': [2, 'always', [
'cd',
'ci',
'core',
'docs',
'example/html',
'example/react',
'html',
'icons',
'react-native',
'react',
'root',
'site',
'test',
'utils',
]],
},
};