Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f3cd76

Browse files
chore: switch eslint -> oxlint
1 parentb2f1b44 commit2f3cd76

File tree

13 files changed

+3777
-4376
lines changed

13 files changed

+3777
-4376
lines changed

‎benchmarks/async.js‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ function Leaf() {
1111
);
1212
}
1313

14-
constlazies=newArray(600)
15-
.fill(600)
16-
.map(()=>
17-
lazy(()=>
18-
Promise.resolve().then(()=>({
19-
default:(props)=><div>{props.children}</div>
20-
}))
21-
)
22-
);
14+
// oxlint-disable-next-line no-new-array
15+
constlazies=newArray(600).fill(600).map(()=>
16+
lazy(()=>
17+
Promise.resolve().then(()=>({
18+
default:(props)=><div>{props.children}</div>
19+
}))
20+
)
21+
);
2322
functionPassThrough(props){
2423
constLazy=lazies(props.id);
2524
return<Lazy{...props}/>;

‎benchmarks/lib/benchmark-lite.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default class Suite {
3535
prev=now;
3636
consttimes=[];
3737
do{
38+
// oxlint-disable-next-line no-unused-vars
3839
for(leti=iterations;i--;)executor(++count);
3940
prev=now;
4041
now=performance.now();

‎demo/src/entry-client.jsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { hydrate } from 'preact';
22
import{App}from'./App';
33

44
constconfig={attributes:true,childList:true,subtree:true};
5-
constmut=newMutationObserver((mutationList,observer)=>{
5+
constmut=newMutationObserver((mutationList)=>{
66
for(constmutationofmutationList){
77
if(mutation.type==='childList'){
88
console.log('A child node has been added or removed.',mutation);

‎jsx.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports=require('./dist/jsx');// eslint-disable-line
1+
module.exports=require('./dist/jsx');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp