Skip to content

Commit b671474

Browse files
committed
Fixup
1 parent d16739a commit b671474

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

@commitlint/config-nx-scopes/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import {RuleConfigSeverity} from '@commitlint/types';
12
const {
23
getProjects: getNXProjects,
34
} = require('nx/src/generators/utils/project-configuration');
@@ -6,7 +7,7 @@ const {FsTree} = require('nx/src/generators/tree');
67
module.exports = {
78
utils: {getProjects},
89
rules: {
9-
'scope-enum': (ctx) => Promise.resolve([2, 'always', getProjects(ctx)]),
10+
'scope-enum': (ctx) => Promise.resolve([RuleConfigSeverity.Error, 'always', getProjects(ctx)]),
1011
},
1112
};
1213

0 commit comments

Comments
 (0)