fix(linter): fix default lint file (#10250)
This commit is contained in:
parent
ef050d914f
commit
4dbd6559cf
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@ -18,5 +18,5 @@ export function findEslintFile(tree: Tree): string {
|
||||
}
|
||||
}
|
||||
// Default file
|
||||
return 'eslintrc.json';
|
||||
return '.eslintrc.json';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user