Skip to content

Commit de9c20e

Browse files
committed
chore: cleanup linter issues
1 parent a7670c9 commit de9c20e

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

eslint.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ export default [
2929
{
3030
rules: {
3131
"@typescript-eslint/no-inferrable-types": "off",
32+
"@typescript-eslint/no-unused-vars": [
33+
"error",
34+
{
35+
argsIgnorePattern: "^_",
36+
varsIgnorePattern: "^_",
37+
},
38+
],
3239
},
3340
},
3441
];

src/selector-class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function getElementClassSelectors(
8383
// Apply generated class name filtering if enabled
8484
if (options?.ignoreGeneratedClassNames) {
8585
// Check whitelist to preserve whitelisted generated classes
86-
const matchWhitelist = createPatternMatcher(options.whitelist || []);
86+
const matchWhitelist = createPatternMatcher(options.whitelist);
8787

8888
filteredClassNames = classNames.filter((className) => {
8989
const selector = `.${sanitizeSelectorItem(className)}`;

0 commit comments

Comments
 (0)