diff --git a/packages/commitlint-config/package.json b/packages/commitlint-config/package.json index ef0ce08..2c5c593 100644 --- a/packages/commitlint-config/package.json +++ b/packages/commitlint-config/package.json @@ -25,9 +25,6 @@ "lint": "eslint src/**/*.ts --fix", "sort-package-json": "pnpm dlx sort-package-json" }, - "dependencies": { - "@commitlint/config-conventional": "^17.4.3" - }, "devDependencies": { "@mheob/eslint-config": "workspace:*", "@mheob/tsconfig": "workspace:*", diff --git a/packages/commitlint-config/src/index.ts b/packages/commitlint-config/src/index.ts index 0919b9b..4f457e5 100644 --- a/packages/commitlint-config/src/index.ts +++ b/packages/commitlint-config/src/index.ts @@ -49,8 +49,18 @@ function getIssue() { } const options: UserConfig = { - extends: ['@commitlint/config-conventional'], rules: { + 'body-leading-blank': [1, 'always'], + 'body-max-line-length': [2, 'always', 100], + 'footer-leading-blank': [1, 'always'], + 'footer-max-line-length': [2, 'always', 100], + 'header-max-length': [2, 'always', 100], + 'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']], + 'subject-empty': [2, 'never'], + 'subject-full-stop': [2, 'never', '.'], + 'subject-max-length': [2, 'always', 72], + 'type-case': [2, 'always', 'lower-case'], + 'type-empty': [2, 'never'], 'type-enum': [ 2, 'always', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 07355a4..f483377 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,7 +6,6 @@ importers: specifiers: '@changesets/cli': ^2.26.0 '@commitlint/cli': ^17.4.3 - '@commitlint/config-conventional': ^17.4.3 '@mheob/changeset-changelog': ^2.0.1 '@mheob/commitlint-config': workspace:* '@mheob/eslint-config': workspace:* @@ -24,7 +23,6 @@ importers: devDependencies: '@changesets/cli': 2.26.0 '@commitlint/cli': 17.4.3 - '@commitlint/config-conventional': 17.4.3 '@mheob/changeset-changelog': 2.0.1 '@mheob/commitlint-config': link:packages/commitlint-config '@mheob/eslint-config': link:packages/eslint-config @@ -347,13 +345,6 @@ packages: - '@swc/wasm' dev: true - /@commitlint/config-conventional/17.4.3: - resolution: {integrity: sha512-8EsY2iDw74hCk3hIQSg7/E0R8/KtPjnFPZVwmmHxcjhZjkSykmxysefICPDnbI3xgxfov0zwL1WKDHM8zglJdw==} - engines: {node: '>=v14'} - dependencies: - conventional-changelog-conventionalcommits: 5.0.0 - dev: true - /@commitlint/config-validator/17.4.0: resolution: {integrity: sha512-Sa/+8KNpDXz4zT4bVbz2fpFjvgkPO6u2V2fP4TKgt6FjmOw2z3eEX859vtfeaTav/ukBw0/0jr+5ZTZp9zCBhA==} engines: {node: '>=v14'} @@ -1262,15 +1253,6 @@ packages: q: 1.5.1 dev: true - /conventional-changelog-conventionalcommits/5.0.0: - resolution: {integrity: sha512-lCDbA+ZqVFQGUj7h9QBKoIpLhl8iihkO0nCTyRNzuXtcd7ubODpYB04IFy31JloiJgG0Uovu8ot8oxRzn7Nwtw==} - engines: {node: '>=10'} - dependencies: - compare-func: 2.0.0 - lodash: 4.17.21 - q: 1.5.1 - dev: true - /conventional-commit-types/3.0.0: resolution: {integrity: sha512-SmmCYnOniSsAa9GqWOeLqc179lfr5TRu5b4QFDkbsrJ5TZjPJx85wtOr3zn+1dbeNiXDKGPbZ72IKbPhLXh/Lg==} dev: true