Skip to content

Commit 57804a2

Browse files
committed
chore: lint
1 parent 16de4ef commit 57804a2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

client/src/test/formatter.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ suite('formatter should work', () => {
88
'example-units',
99
'example-vuepress',
1010
]
11-
1211
for (const name of names)
1312
await assertEqualAfterFix(name)
1413
})

client/src/test/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export function run(): Promise<void> {
2626

2727
try {
2828
// Run the mocha test
29-
mocha.run((failures) => {
30-
if (failures > 0)
29+
mocha.run((failures) => {
30+
if (failures > 0)
3131
reject(new Error(`${failures} tests failed.`))
32-
else
32+
else
3333
resolve()
3434
})
3535
}

eslint.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ module.exports = antfu({
55
rules: {
66
'style/indent': 'off',
77
'style/no-tabs': 'off',
8-
'node/prefer-global/process': 'off',
8+
'no-console': 'off',
9+
'node/prefer-global/process': 'off',
910
},
1011
markdown: false,
11-
files: [
12+
ignores: [
1213
'.gitignore',
1314
'.eslintignore',
1415
],

0 commit comments

Comments
 (0)