Skip to content

Commit

Permalink
build: fix introduced post-merge build break with no-useless-empty-ex…
Browse files Browse the repository at this point in the history
…port
  • Loading branch information
JoshuaKGoldberg committed Oct 15, 2023
1 parent 3c6379b commit 3d58813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin/src/rules/no-useless-empty-export.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { TSESTree } from '@typescript-eslint/utils';
import { AST_NODE_TYPES } from '@typescript-eslint/utils';

import { createRule } from '../util';
import { createRule, isDefinitionFile } from '../util';

function isEmptyExport(
node: TSESTree.Node,
Expand Down Expand Up @@ -43,7 +43,7 @@ export default createRule({
// In a definition file, export {} is necessary to make the module properly
// encapsulated, even when there are other exports
// https://github.com/typescript-eslint/typescript-eslint/issues/4975
if (util.isDefinitionFile(context.getFilename())) {
if (isDefinitionFile(context.getFilename())) {
return {};
}
function checkNode(
Expand Down

0 comments on commit 3d58813

Please sign in to comment.