Skip to content

Commit 84b1b85

Browse files
committed
Fix code style issues with ESLint
1 parent fbe26df commit 84b1b85

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ module.exports = async () => {
9696
}
9797
],
9898
{
99-
onCancel: (error) => {
99+
onCancel: error => {
100100
if (!['local', 'test'].includes(process.env.NODE_ENV)) {
101101
console.error('TPG process cancelled')
102102
console.error(error)

lib/src/functions/ghat.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,23 @@ jobs:
4343
managerName === 'yarn'
4444
? 'yarn install --frozen-lockfile'
4545
: managerName === 'npm'
46-
? 'npm ci'
47-
: 'pnpm i --frozen-lockfile'
46+
? 'npm ci'
47+
: 'pnpm i --frozen-lockfile'
4848
}
4949
5050
- name: Revert changes into the ${
5151
managerName === 'yarn'
5252
? 'yarn.lock'
5353
: managerName === 'npm'
54-
? 'package-lock.json'
55-
: 'pnpm-lock.yaml'
54+
? 'package-lock.json'
55+
: 'pnpm-lock.yaml'
5656
} file
5757
run: git checkout -- ${
5858
managerName === 'yarn'
5959
? 'yarn.lock'
6060
: managerName === 'npm'
61-
? 'package-lock.json'
62-
: 'pnpm-lock.yaml'
61+
? 'package-lock.json'
62+
: 'pnpm-lock.yaml'
6363
}
6464
6565
- name: Run linters
@@ -98,32 +98,32 @@ jobs:
9898
managerName === 'yarn'
9999
? 'yarn install --frozen-lockfile'
100100
: managerName === 'npm'
101-
? 'npm ci'
102-
: 'pnpm i --frozen-lockfile'
101+
? 'npm ci'
102+
: 'pnpm i --frozen-lockfile'
103103
}
104104
105105
- name: Revert changes into the ${
106106
managerName === 'yarn'
107107
? 'yarn.lock'
108108
: managerName === 'npm'
109-
? 'package-lock.json'
110-
: 'pnpm-lock.yaml'
109+
? 'package-lock.json'
110+
: 'pnpm-lock.yaml'
111111
} file
112112
run: git checkout -- ${
113113
managerName === 'yarn'
114114
? 'yarn.lock'
115115
: managerName === 'npm'
116-
? 'package-lock.json'
117-
: 'pnpm-lock.yaml'
116+
? 'package-lock.json'
117+
: 'pnpm-lock.yaml'
118118
}
119119
120120
- name: Run test
121121
run: ${
122122
managerName === 'yarn'
123123
? 'yarn'
124124
: managerName === 'npm'
125-
? 'npm'
126-
: 'pnpm'
125+
? 'npm'
126+
: 'pnpm'
127127
} test:ci
128128
`,
129129
file: '.github/workflows/test.yml'

test/index.test.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,14 @@ describe('Testing TPG', () => {
6464
expect(existsSync(join(__dirname, '../example/.gitignore'))).toBe(true)
6565
expect(existsSync(join(__dirname, '../example/CHANGELOG.md'))).toBe(true)
6666
expect(existsSync(join(__dirname, '../example/Dockerfile'))).toBe(true)
67-
expect(existsSync(join(__dirname, '../example/jest.config.ts'))).toBe(true)
67+
expect(existsSync(join(__dirname, '../example/jest.config.ts'))).toBe(
68+
true
69+
)
6870
expect(existsSync(join(__dirname, '../example/LICENSE'))).toBe(true)
6971
expect(existsSync(join(__dirname, '../example/package.json'))).toBe(true)
70-
expect(existsSync(join(__dirname, '../example/pnpm-lock.yaml'))).toBe(true)
72+
expect(existsSync(join(__dirname, '../example/pnpm-lock.yaml'))).toBe(
73+
true
74+
)
7175
expect(existsSync(join(__dirname, '../example/README.md'))).toBe(true)
7276
expect(existsSync(join(__dirname, '../example/tsconfig.base.json'))).toBe(
7377
true

0 commit comments

Comments
 (0)