统一 pnpm 10 + Node 24.15.0 + Turborepo 单仓,落地 ESLint 9 flat、Prettier、commitlint、husky 与 Gitea CI,作为后续批次的一致门禁。
29 lines
571 B
JavaScript
29 lines
571 B
JavaScript
/** @type {import('@commitlint/types').UserConfig} */
|
|
export default {
|
|
extends: ['@commitlint/config-conventional'],
|
|
rules: {
|
|
'type-enum': [
|
|
2,
|
|
'always',
|
|
[
|
|
'feat',
|
|
'fix',
|
|
'docs',
|
|
'style',
|
|
'refactor',
|
|
'perf',
|
|
'test',
|
|
'build',
|
|
'ci',
|
|
'chore',
|
|
'revert',
|
|
],
|
|
],
|
|
'subject-case': [0],
|
|
'subject-empty': [2, 'never'],
|
|
'header-max-length': [2, 'always', 72],
|
|
'subject-full-stop': [2, 'never', '。'],
|
|
'body-max-line-length': [0],
|
|
},
|
|
};
|