Skip to content

Commit 0597f73

Browse files
committed
fix: fix exclusionPatterns
1 parent bdb7661 commit 0597f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentence-length.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const defaultOptions: Required<Options> = {
4949

5050
const reporter: TextlintRuleReporter<Options> = (context, options = {}) => {
5151
const maxLength = options.max ?? defaultOptions.max;
52-
const skipPatterns = options.skipPatterns ?? options.skipPatterns ?? defaultOptions.skipPatterns;
52+
const skipPatterns = options.skipPatterns ?? options.exclusionPatterns ?? defaultOptions.skipPatterns;
5353
const skipUrlStringLink = options.skipUrlStringLink ?? defaultOptions.skipUrlStringLink;
5454
const helper = new RuleHelper(context);
5555
const { Syntax, RuleError, report } = context;

0 commit comments

Comments
 (0)