Skip to content

Commit

Permalink
fix: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Dec 19, 2021
1 parent 0c0dca6 commit ac3470b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rules/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const { createTransformToMakeFixableAndFix } = importSync(async () => import('..

// The type cannot be dynamically imported. Here, we use any instead.
// const { Transform, TransformContext } = importSync(() => import('../types.js'));
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type Transform = any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type TransformContext = any;

/**
Expand Down Expand Up @@ -75,12 +77,16 @@ const rule: Rule.RuleModule = {

let fixes: Rule.Fix[] = [];
if (transform.name === 'disablePerLine') {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
fixes = createTransformToDisablePerLine(transformContext, transform.args);
} else if (transform.name === 'disablePerFile') {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
fixes = createTransformToDisablePerFile(transformContext, transform.args);
} else if (transform.name === 'applySuggestions') {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
fixes = createTransformToApplySuggestions(transformContext, transform.args);
} else if (transform.name === 'makeFixableAndFix') {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
fixes = createTransformToMakeFixableAndFix(transformContext, transform.args);
} else {
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit ac3470b

Please sign in to comment.