File tree 4 files changed +9
-12
lines changed
4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
1
import unjs from "eslint-config-unjs" ;
2
2
3
3
export default unjs ( {
4
- ignores : [
5
- "test/fixtures/error-*"
6
- ] ,
4
+ ignores : [ "test/fixtures/error-*" ] ,
7
5
rules : {
8
6
"unicorn/no-null" : 0 ,
9
7
"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 ,
11
10
} ,
12
11
} ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
/** @jsx h */
2
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
3
import { h , renderSSR } from "nano-jsx" ;
3
4
4
5
console . log ( renderSSR ( ( ) => < h1 > Hello, nano-jsx!</ h1 > ) ) ;
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ for (const fixture of fixtures) {
13
13
const promise = import ( `./fixtures/${ fixture } ` ) ;
14
14
const shouldReject =
15
15
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
+ }
19
21
} ) ;
20
22
}
You can’t perform that action at this time.
0 commit comments