Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix: change prettier files selection
Browse files Browse the repository at this point in the history
  • Loading branch information
domirs committed Jun 21, 2021
1 parent 0370f56 commit b63f20f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/prettier/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ function addLintScript(): Rule {
? packageJson.scripts.lint.split('&&')
: [];

if (!lintScripts.includes('prettier -c *')) {
lintScripts.push('prettier -c *');
if (!lintScripts.includes('prettier -c .')) {
lintScripts.push('prettier -c .');
}

packageJson.scripts.lint = lintScripts
Expand Down
2 changes: 1 addition & 1 deletion src/prettier/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ describe('prettier', () => {
.toPromise();

const content = tree.readContent('/package.json');
expect(content).toMatch('prettier -c *');
expect(content).toContain('prettier -c .');
});
});

0 comments on commit b63f20f

Please sign in to comment.