midscene/commitlint.config.js
2025-04-21 13:54:58 +08:00

27 lines
559 B
JavaScript

// commitlint.config.js
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [
2, // Level: Error
'always', // Apply rule always
[
// Allowed scopes
'core',
'cli',
'workflow',
'android',
'llm',
'playwright',
'puppeteer',
'mcp',
'bridge',
'shared',
// Add other relevant scopes for your project if needed
],
],
// Add rule to disallow empty scopes
'scope-empty': [2, 'never'],
},
};