-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(rules): remove
Rule<unknown>
cast
This was resolved by conventional-changelog/commitlint#2146 in commitlint v12.0.1.
- Loading branch information
Showing
1 changed file
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
import { Plugin, Rule } from '@commitlint/types'; | ||
import { Plugin } from '@commitlint/types'; | ||
import functionRule from './function-rule'; | ||
|
||
const rules: Plugin['rules'] = { | ||
'function-rules/body-case': functionRule as Rule<unknown>, | ||
'function-rules/body-empty': functionRule as Rule<unknown>, | ||
'function-rules/body-full-stop': functionRule as Rule<unknown>, | ||
'function-rules/body-leading-blank': functionRule as Rule<unknown>, | ||
'function-rules/body-max-length': functionRule as Rule<unknown>, | ||
'function-rules/body-max-line-length': functionRule as Rule<unknown>, | ||
'function-rules/body-min-length': functionRule as Rule<unknown>, | ||
'function-rules/footer-empty': functionRule as Rule<unknown>, | ||
'function-rules/footer-leading-blank': functionRule as Rule<unknown>, | ||
'function-rules/footer-max-length': functionRule as Rule<unknown>, | ||
'function-rules/footer-max-line-length': functionRule as Rule<unknown>, | ||
'function-rules/footer-min-length': functionRule as Rule<unknown>, | ||
'function-rules/header-case': functionRule as Rule<unknown>, | ||
'function-rules/header-full-stop': functionRule as Rule<unknown>, | ||
'function-rules/header-max-length': functionRule as Rule<unknown>, | ||
'function-rules/header-min-length': functionRule as Rule<unknown>, | ||
'function-rules/references-empty': functionRule as Rule<unknown>, | ||
'function-rules/scope-case': functionRule as Rule<unknown>, | ||
'function-rules/scope-empty': functionRule as Rule<unknown>, | ||
'function-rules/scope-enum': functionRule as Rule<unknown>, | ||
'function-rules/scope-max-length': functionRule as Rule<unknown>, | ||
'function-rules/scope-min-length': functionRule as Rule<unknown>, | ||
'function-rules/signed-off-by': functionRule as Rule<unknown>, | ||
'function-rules/subject-case': functionRule as Rule<unknown>, | ||
'function-rules/subject-empty': functionRule as Rule<unknown>, | ||
'function-rules/subject-exclamation-mark': functionRule as Rule<unknown>, | ||
'function-rules/subject-full-stop': functionRule as Rule<unknown>, | ||
'function-rules/subject-max-length': functionRule as Rule<unknown>, | ||
'function-rules/subject-min-length': functionRule as Rule<unknown>, | ||
'function-rules/trailer-exists': functionRule as Rule<unknown>, | ||
'function-rules/type-case': functionRule as Rule<unknown>, | ||
'function-rules/type-empty': functionRule as Rule<unknown>, | ||
'function-rules/type-enum': functionRule as Rule<unknown>, | ||
'function-rules/type-max-length': functionRule as Rule<unknown>, | ||
'function-rules/type-min-length': functionRule as Rule<unknown>, | ||
'function-rules/body-case': functionRule, | ||
'function-rules/body-empty': functionRule, | ||
'function-rules/body-full-stop': functionRule, | ||
'function-rules/body-leading-blank': functionRule, | ||
'function-rules/body-max-length': functionRule, | ||
'function-rules/body-max-line-length': functionRule, | ||
'function-rules/body-min-length': functionRule, | ||
'function-rules/footer-empty': functionRule, | ||
'function-rules/footer-leading-blank': functionRule, | ||
'function-rules/footer-max-length': functionRule, | ||
'function-rules/footer-max-line-length': functionRule, | ||
'function-rules/footer-min-length': functionRule, | ||
'function-rules/header-case': functionRule, | ||
'function-rules/header-full-stop': functionRule, | ||
'function-rules/header-max-length': functionRule, | ||
'function-rules/header-min-length': functionRule, | ||
'function-rules/references-empty': functionRule, | ||
'function-rules/scope-case': functionRule, | ||
'function-rules/scope-empty': functionRule, | ||
'function-rules/scope-enum': functionRule, | ||
'function-rules/scope-max-length': functionRule, | ||
'function-rules/scope-min-length': functionRule, | ||
'function-rules/signed-off-by': functionRule, | ||
'function-rules/subject-case': functionRule, | ||
'function-rules/subject-empty': functionRule, | ||
'function-rules/subject-exclamation-mark': functionRule, | ||
'function-rules/subject-full-stop': functionRule, | ||
'function-rules/subject-max-length': functionRule, | ||
'function-rules/subject-min-length': functionRule, | ||
'function-rules/trailer-exists': functionRule, | ||
'function-rules/type-case': functionRule, | ||
'function-rules/type-empty': functionRule, | ||
'function-rules/type-enum': functionRule, | ||
'function-rules/type-max-length': functionRule, | ||
'function-rules/type-min-length': functionRule, | ||
}; | ||
|
||
export default rules; |