teableio_teable/commitlint.config.js
nichenqin bef26b1663 feat(v2): integrate command explain functionality with SQL formatting and analysis
- Added `sql-formatter` dependency for SQL formatting.
- Implemented `ExplainResultPanel` component for displaying SQL explain results.
- Enhanced `RecordCreateDialog` and `RecordUpdateDialog` to include explain functionality.
- Introduced command explain service and analyzers for create, update, and delete operations.
- Updated HTTP contract to include explain endpoints for create, update, and delete commands.
- Registered command explain module in the container node setup.
2026-01-07 23:09:07 +08:00

40 lines
931 B
JavaScript

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'body-leading-blank': [1, 'always'],
'body-max-line-length': [0, 'always', 100],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [0, 'always', 100],
'header-max-length': [2, 'always', 100],
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
'translation',
'security',
],
],
},
};