Skip to content

Commit 6883522

Browse files
committed
Prettier and helper script to format the project
1 parent 91be7c7 commit 6883522

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.md
22
.changeset
3+
.yarn
34
dist
45
coverage
56
node_modules

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"build": "lerna run build",
1515
"clean": "git clean -fxd -e .idea -e node_modules -e .yarn",
1616
"clean:cache": "git clean -fxd .yarn node_modules packages simple-git",
17+
"format": "prettier --write .",
1718
"test": "lerna run test"
1819
},
1920
"dependencies": {

simple-git/test/integration/log-numstat.spec.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import { newSimpleGit } from '@simple-git/test-utils';
33

44
describe('log-numstat', function () {
55
it('custom format and date range should not fail when also setting numstat', async () => {
6-
const ac = new AbortController()
6+
const ac = new AbortController();
77
const log = newSimpleGit(__dirname, {
88
abort: ac.signal,
9-
}).log({ format: {
9+
}).log({
10+
'format': {
1011
H: '%H',
1112
h: '%h',
1213
P: '%P',
@@ -16,8 +17,12 @@ describe('log-numstat', function () {
1617
D: '%D',
1718
b: '%b',
1819
an: '%an',
19-
ae: '%ae'
20-
}, '--all': null, '--since': '2024-02-04', '--numstat': null});
20+
ae: '%ae',
21+
},
22+
'--all': null,
23+
'--since': '2024-02-04',
24+
'--numstat': null,
25+
});
2126

2227
setTimeout(() => ac.abort(), 500);
2328

0 commit comments

Comments
 (0)