Skip to content

Commit

Permalink
feat: add ignorePackages option
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Sep 19, 2023
1 parent c43ef5f commit 545558a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rules/requireExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import { readPackageJson } from '../utilities/readPackageJson';
const extensions = ['.js', '.ts', '.tsx'];

const defaultOptions = {
// You may want to disable ignorePackages because there can be too many false-positives
// when attempting to identify if a package import requires .js extension or not.
//
// * We need to consider that the resolved path can be @types/.
// * We need to consider that the package.json might have package.json#exports rules.
ignorePackages: false,
};

Expand Down

0 comments on commit 545558a

Please sign in to comment.