fix(linter): fix default lint file (#10250)

This commit is contained in:
Jason Jean 2022-05-11 12:45:21 -04:00 committed by GitHub
parent ef050d914f
commit 4dbd6559cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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', () => {
@ -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');
});
});
});

View File

@ -18,5 +18,5 @@ export function findEslintFile(tree: Tree): string {
}
}
// Default file
return 'eslintrc.json';
return '.eslintrc.json';
}