Skip to content

Commit

Permalink
fix: Path for scanFor()
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Sep 20, 2019
1 parent be7d1b9 commit c29708a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/practices/JavaScript/ESLintCorrectlyUsed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class ESLintCorrectlyUsedPractice implements IPractice {
};

// Get the eslint config for component
const eslintConfig = await ctx.fileInspector.scanFor(/\.eslintrc/, ctx.projectComponent.path, { shallow: true });
const eslintConfig = await ctx.fileInspector.scanFor(/\.eslintrc/, '/', { shallow: true });

if (eslintConfig.length > 0) {
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
Expand Down

0 comments on commit c29708a

Please sign in to comment.