We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5115ea6 commit 23a7079Copy full SHA for 23a7079
src/index.ts
@@ -1,5 +1,10 @@
1
-import { default as scopePattern } from "./rules/scope-pattern/index.js";
+import { type Plugin } from '@commitlint/types';
2
+import { default as scopePattern } from "./rules/scope-pattern";
3
-export const rules = {
4
- 'scope-pattern': scopePattern
+export const rules: Plugin['rules'] = {
5
+ 'commitlint-plugin-prevenger/scope-pattern': scopePattern,
6
+};
7
+
8
+export default {
9
+ rules,
10
};
src/rules/scope-pattern/index.ts
@@ -1,7 +1,7 @@
import type { Rule } from '@commitlint/types';
import type { Commit } from 'conventional-commits-parser';
-const rule: Rule = (
+const rule: Rule = async (
parsed: Commit,
when: 'always' | 'never' = 'always',
value: [string, string?] = ['']
0 commit comments