Skip to content

Commit

Permalink
fix(linter): fix default lint file (#10250)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed May 11, 2022
1 parent ef050d9 commit 4dbd655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/linter/src/generators/utils/eslint-file.spec.ts
Expand Up @@ -33,7 +33,7 @@ describe('@nrwl/linter:eslint-file', () => {

describe('findEslintFile', () => {
it('should return default name when calling findEslintFile when no eslint is found', () => {
expect(findEslintFile(tree)).toBe('eslintrc.json');
expect(findEslintFile(tree)).toBe('.eslintrc.json');
});

it('should return the name of the eslint config when calling findEslintFile', () => {
Expand All @@ -49,7 +49,7 @@ describe('@nrwl/linter:eslint-file', () => {
it('should return default name when calling findEslintFile when no eslint is found', () => {
tree.write('.eslintrc.yaml', '{}');

expect(findEslintFile(tree)).toBe('eslintrc.json');
expect(findEslintFile(tree)).toBe('.eslintrc.json');
});
});
});
2 changes: 1 addition & 1 deletion packages/linter/src/generators/utils/eslint-file.ts
Expand Up @@ -18,5 +18,5 @@ export function findEslintFile(tree: Tree): string {
}
}
// Default file
return 'eslintrc.json';
return '.eslintrc.json';
}

0 comments on commit 4dbd655

Please sign in to comment.