Skip to content

Commit e55f711

Browse files
committed
refactor(cli): remove obsolete preset flag
1 parent 1ab1ee8 commit e55f711

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

@commitlint/cli/cli.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ const rules = {
2222
};
2323

2424
const configuration = {
25-
string: ['from', 'to', 'preset', 'extends'],
25+
string: ['from', 'to', 'extends'],
2626
boolean: ['edit', 'help', 'version', 'quiet', 'color'],
2727
alias: {
2828
c: 'color',
2929
e: 'edit',
3030
f: 'from',
31-
p: 'preset',
3231
t: 'to',
3332
q: 'quiet',
3433
h: 'help',
@@ -40,15 +39,13 @@ const configuration = {
4039
edit: 'read last commit message found in ./git/COMMIT_EDITMSG',
4140
extends: 'array of shareable configurations to extend',
4241
from: 'lower end of the commit range to lint; applies if edit=false',
43-
preset: 'conventional-changelog-preset to use for commit message parsing',
4442
to: 'upper end of the commit range to lint; applies if edit=false',
4543
quiet: 'toggle console output'
4644
},
4745
default: {
4846
color: true,
4947
edit: false,
5048
from: null,
51-
preset: 'angular',
5249
to: null,
5350
quiet: false
5451
},

@commitlint/cli/readme.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ echo '{"extends": ["@commitlint/config-angular"]}' > .commitlintrc
2020
--edit,-e read last commit message found in ./git/COMMIT_EDITMSG
2121
--extends,-x array of shareable configurations to extend
2222
--from,-f lower end of the commit range to lint; applies if edit=false
23-
--preset,-p conventional-changelog-preset to use for commit message parsing, defaults to: angular.
2423
--to,-t upper end of the commit range to lint; applies if edit=false
2524
--quiet,-q toggle console output
26-
2725
```
2826
2927
### Recipes

@commitlint/cli/scripts/lint:commits.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ fi
1717
# Lint all commits in the PR
1818
# - Covers fork pull requests (when TO=slug/branch)
1919
# - Covers branch pull requests (when TO=branch)
20-
conventional-changelog-lint --from="$TRAVIS_BRANCH" --to="$TO"
20+
commitlint --from="$TRAVIS_BRANCH" --to="$TO"
2121

2222
# Always lint the triggerig commit
2323
# - Covers direct commits
24-
conventional-changelog-lint --from="$TRAVIS_COMMIT"
24+
commitlint --from="$TRAVIS_COMMIT"

0 commit comments

Comments
 (0)