Skip to content

Commit d424e9c

Browse files
Merge pull request #421 from preactjs/switch-oxlint
chore: switch eslint -> oxlint
2 parents b2f1b44 + 2f3cd76 commit d424e9c

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-
const lazies = new Array(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+
const lazies = new Array(600).fill(600).map(() =>
16+
lazy(() =>
17+
Promise.resolve().then(() => ({
18+
default: (props) => <div>{props.children}</div>
19+
}))
20+
)
21+
);
2322
function PassThrough(props) {
2423
const Lazy = 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
const times = [];
3737
do {
38+
// oxlint-disable-next-line no-unused-vars
3839
for (let i = 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
const config = { attributes: true, childList: true, subtree: true };
5-
const mut = new MutationObserver((mutationList, observer) => {
5+
const mut = new MutationObserver((mutationList) => {
66
for (const mutation of mutationList) {
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy