Skip to content

Commit b4daec8

Browse files
committed
chore: simplify code
1 parent 6f91910 commit b4daec8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/rules/syntaxes/slot-attribute.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ module.exports = {
1717
const options = context.options[0] || {}
1818
const { ignore = [] } = options
1919
/** @type {RegExp[]} */
20-
const ignorePatterns = []
21-
22-
for (const str of ignore) {
23-
ignorePatterns.push(regexp.toRegExp(str))
24-
}
20+
const ignorePatterns = ignore.map(regexp.toRegExp)
2521

2622
const sourceCode = context.getSourceCode()
2723
const tokenStore =

0 commit comments

Comments
 (0)