Skip to content

Commit

Permalink
refactor: Use "@ts-expect-error" instead of "@ts-ignore" (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix authored Nov 2, 2024
1 parent 0f9331c commit 3de28e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build-from-oxlint-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ const handleCategoriesScope = (
continue;
}

// @ts-ignore -- come on TS, we are checking if the configName exists in the configByCategory
// @ts-expect-error -- come on TS, we are checking if the configName exists in the configByCategory
const possibleRules = configByCategory[configName].rules;

// iterate to each rule to check if the rule can be appended, because the plugin is activated
for (const rule of Object.keys(possibleRules)) {
for (const plugin of plugins) {
// @ts-ignore -- come on TS, we are checking if the plugin exists in the configByscopeMapsCategory
// @ts-expect-error -- come on TS, we are checking if the plugin exists in the configByscopeMapsCategory
const pluginPrefix = plugin in scopeMaps ? scopeMaps[plugin] : plugin;

// the rule has no prefix, so it is a eslint one
Expand Down

0 comments on commit 3de28e8

Please sign in to comment.