Skip to content

Commit ab743a9

Browse files
authored
chore: oxlint v0.7.0 (#4469)
* Fixed some `no-unused-vars` in tests * Removed confusing ignore directories in `.eslintignore`
1 parent 8d86fe1 commit ab743a9

File tree

6 files changed

+41
-45
lines changed

6 files changed

+41
-45
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
test/fixtures
2-
test/ts/
3-
*.ts
41
dist
52
benchmarks

compat/test/browser/memo.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import React, {
1111
memo,
1212
useState
1313
} from 'preact/compat';
14-
import { li, ol } from '../../../test/_util/dom';
1514

1615
const h = React.createElement;
1716

compat/test/ts/suspense.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const componentPromise = new Promise<{ default: typeof IsLazyFunctional }>(
2727
const IsLazyFunc = React.lazy(() => componentPromise);
2828

2929
// Suspense using lazy component
30-
class SuspensefulFunc extends React.Component {
30+
class ReactSuspensefulFunc extends React.Component {
3131
render() {
3232
return (
3333
<React.Suspense fallback={<FallBack />}>
@@ -38,7 +38,7 @@ class SuspensefulFunc extends React.Component {
3838
}
3939

4040
//SuspenseList using lazy components
41-
function SuspenseListTester(props: any) {
41+
function ReactSuspenseListTester(_props: any) {
4242
return (
4343
<React.SuspenseList revealOrder="together">
4444
<React.Suspense fallback={<FallBack />}>

package-lock.json

Lines changed: 36 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"benchmark": "npm run test:karma:bench -- no-single-run",
136136
"lint": "run-s oxlint tsc",
137137
"tsc": "tsc -p jsconfig-lint.json",
138-
"oxlint": "oxlint src test debug compat hooks test-utils -c oxlint.json",
138+
"oxlint": "oxlint -c oxlint.json src test/browser test/node test/shared debug compat hooks test-utils",
139139
"format": "biome format --write .",
140140
"format:check": "biome format ."
141141
},
@@ -240,7 +240,7 @@
240240
"mocha": "^9.0.0",
241241
"npm-merge-driver-install": "^3.0.0",
242242
"npm-run-all": "^4.1.5",
243-
"oxlint": "^0.5.2",
243+
"oxlint": "^0.7.0",
244244
"preact-render-to-string": "^6.5.0",
245245
"prop-types": "^15.8.1",
246246
"sade": "^1.8.1",

test/browser/components.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ describe('Components', () => {
12311231

12321232
let j = 0;
12331233
class Inner extends Component {
1234-
constructor(...args) {
1234+
constructor() {
12351235
super();
12361236
}
12371237
componentWillMount() {}

0 commit comments

Comments
 (0)