Skip to content

Commit

Permalink
refactor(rules): remove Rule<unknown> cast
Browse files Browse the repository at this point in the history
This was resolved by conventional-changelog/commitlint#2146 in commitlint v12.0.1.
  • Loading branch information
jdbruijn committed Apr 17, 2022
1 parent e386455 commit 8f0f47a
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions src/rules.ts
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;

0 comments on commit 8f0f47a

Please sign in to comment.