mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore(root): add commitlint (#129)
This commit is contained in:
@@ -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',
|
||||
]],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user