-
-
Notifications
You must be signed in to change notification settings - Fork 804
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
17 lines (14 loc) · 833 Bytes
/
commitlint.config.ts
File metadata and controls
17 lines (14 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import conventional from '@commitlint/config-conventional';
import { UserConfig } from '@commitlint/types';
const isCi = process.env.CI === 'true';
const config: UserConfig = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', [...conventional.rules['type-enum'][2], 'api', 'release']],
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'experience', 'experience-legacy', 'deps', 'deps-dev', 'cli', 'toolkit', 'cloud', 'app-insights', 'elements', 'translate', 'tunnel', 'account-elements', 'account', 'api']],
// Slightly increase the tolerance to allow the appending PR number
...(isCi && { 'header-max-length': [2, 'always', 110] }),
'body-max-line-length': [2, 'always', 110],
},
};
export default config;