Skip to content

Commit 85d7c41

Browse files
committedSep 30, 2024·
chore: lint
1 parent ee90eca commit 85d7c41

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed
 

‎eslint.config.mjs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import unjs from "eslint-config-unjs";
22

33
export default unjs({
4-
ignores: [
5-
"test/fixtures/error-*"
6-
],
4+
ignores: ["test/fixtures/error-*"],
75
rules: {
86
"unicorn/no-null": 0,
97
"unicorn/prefer-top-level-await": 0,
10-
"unicorn/prefer-export-from": 0
8+
"unicorn/prefer-export-from": 0,
9+
"@typescript-eslint/no-require-imports": 0,
1110
},
1211
});

‎test/.eslintrc

-5
This file was deleted.

‎test/fixtures/jsx/nano-jsx.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/** @jsx h */
2+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
23
import { h, renderSSR } from "nano-jsx";
34

45
console.log(renderSSR(() => <h1>Hello, nano-jsx!</h1>));

‎test/node-register.test.mjs

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ for (const fixture of fixtures) {
1313
const promise = import(`./fixtures/${fixture}`);
1414
const shouldReject =
1515
fixture === "error-parse" || fixture === "error-runtime";
16-
(await shouldReject)
17-
? assert.rejects(promise)
18-
: assert.doesNotReject(promise);
16+
if (await shouldReject) {
17+
assert.rejects(promise);
18+
} else {
19+
assert.doesNotReject(promise);
20+
}
1921
});
2022
}

0 commit comments

Comments
 (0)
Please sign in to comment.