Skip to content

Commit

Permalink
chore: oxlint v0.7.0
Browse files Browse the repository at this point in the history
* Fixed some `no-unused-vars` in tests
* Removed confusing ignore directories in `.eslintignore`
  • Loading branch information
Boshen committed Aug 5, 2024
1 parent 8d86fe1 commit 8b60b70
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 45 deletions.
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
test/fixtures
test/ts/
*.ts
dist
benchmarks
1 change: 0 additions & 1 deletion compat/test/browser/memo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import React, {
memo,
useState
} from 'preact/compat';
import { li, ol } from '../../../test/_util/dom';

const h = React.createElement;

Expand Down
4 changes: 2 additions & 2 deletions compat/test/ts/suspense.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const componentPromise = new Promise<{ default: typeof IsLazyFunctional }>(
const IsLazyFunc = React.lazy(() => componentPromise);

// Suspense using lazy component
class SuspensefulFunc extends React.Component {
class ReactSuspensefulFunc extends React.Component {
render() {
return (
<React.Suspense fallback={<FallBack />}>
Expand All @@ -38,7 +38,7 @@ class SuspensefulFunc extends React.Component {
}

//SuspenseList using lazy components
function SuspenseListTester(props: any) {
function ReactSuspenseListTester(_props: any) {
return (
<React.SuspenseList revealOrder="together">
<React.Suspense fallback={<FallBack />}>
Expand Down
72 changes: 36 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"benchmark": "npm run test:karma:bench -- no-single-run",
"lint": "run-s oxlint tsc",
"tsc": "tsc -p jsconfig-lint.json",
"oxlint": "oxlint src test debug compat hooks test-utils -c oxlint.json",
"oxlint": "oxlint -c oxlint.json src test/browser test/node test/shared debug compat hooks test-utils",
"format": "biome format --write .",
"format:check": "biome format ."
},
Expand Down Expand Up @@ -240,7 +240,7 @@
"mocha": "^9.0.0",
"npm-merge-driver-install": "^3.0.0",
"npm-run-all": "^4.1.5",
"oxlint": "^0.5.2",
"oxlint": "^0.7.0",
"preact-render-to-string": "^6.5.0",
"prop-types": "^15.8.1",
"sade": "^1.8.1",
Expand Down
2 changes: 1 addition & 1 deletion test/browser/components.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ describe('Components', () => {

let j = 0;
class Inner extends Component {
constructor(...args) {
constructor() {
super();
}
componentWillMount() {}
Expand Down

0 comments on commit 8b60b70

Please sign in to comment.