mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
f27a3ee2a7
* chore(deps-dev): bump postcss from 8.4.14 to 8.4.31 Bumps [postcss](https://github.com/postcss/postcss) from 8.4.14 to 8.4.31. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.4.14...8.4.31) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * chore: allow `deps-dev` as commit scope --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gao Sun <gao@silverhand.io>
15 lines
701 B
JavaScript
15 lines
701 B
JavaScript
const { rules } = require('@commitlint/config-conventional');
|
|
|
|
const isCi = process.env.CI === 'true';
|
|
|
|
/** @type {import('@commitlint/types').UserConfig} **/
|
|
module.exports = {
|
|
extends: ['@commitlint/config-conventional'],
|
|
rules: {
|
|
'type-enum': [2, 'always', [...rules['type-enum'][2], 'api', 'release']],
|
|
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'experience', 'deps', 'deps-dev', 'cli', 'toolkit', 'cloud', 'app-insights']],
|
|
// Slightly increase the tolerance to allow the appending PR number
|
|
...(isCi && { 'header-max-length': [2, 'always', 110] }),
|
|
'body-max-line-length': [2, 'always', 110],
|
|
},
|
|
};
|