Skip to content

Commit

Permalink
Disable linting on require(...) line in babel plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Edwards committed May 2, 2022
1 parent 3dc0d33 commit f843868
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/addon-dev/src/template-transform-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ export default function main(babel: typeof Babel) {
};

const astTransforms = options.astTransforms.map((maybeFunc) => {
// If it's a string attempt to resolve the path to a module.
return typeof maybeFunc === 'string'
? require(maybeFunc) // If it's a string attempt to resolve the path to a module.
? require(maybeFunc) // eslint-disable-line @typescript-eslint/no-require-imports
: maybeFunc;
});

Expand Down

0 comments on commit f843868

Please sign in to comment.