Skip to content

Commit b9cce94

Browse files
Switch from eslint to oxlint (#5)
1 parent 76b77b5 commit b9cce94

File tree

9 files changed

+350
-2857
lines changed

9 files changed

+350
-2857
lines changed

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 37 deletions
This file was deleted.

.oxlintrc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["react", "typescript"],
4+
"categories": {
5+
"correctness": "error"
6+
},
7+
"rules": {
8+
"no-children-prop": "off",
9+
"no-unused-vars": "warn",
10+
"react-hooks/rules-of-hooks": "error"
11+
},
12+
"env": {
13+
"builtin": true
14+
}
15+
}

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["dbaeumer.vscode-eslint", "bradlc.vscode-tailwindcss"]
2+
"recommendations": ["oxc.oxc-vscode", "bradlc.vscode-tailwindcss"]
33
}

app/lib/md.server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-namespace */
21
/*!
32
* Forked from https://github.com/ryanflorence/md/blob/master/index.ts
43
*

app/root.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default function App() {
141141
});
142142

143143
if (process.env.NODE_ENV !== "development") {
144-
// eslint-disable-next-line react-hooks/rules-of-hooks
144+
// oxlint-disable-next-line react-hooks/rules-of-hooks
145145
useFathomClient("IRVDGCHK", {
146146
url: "https://cdn.usefathom.com/script.js",
147147
spa: "history",
@@ -159,7 +159,6 @@ export default function App() {
159159
// this img tag simply forces the icons to be loaded at a higher
160160
// priority than the scripts (chrome only for now)
161161
// @ts-expect-error -- silly React pretending this attribute doesn't exist
162-
// eslint-disable-next-line react/no-unknown-property
163162
fetchpriority="high"
164163
/>
165164
</Document>

app/routes/$.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const loader = async ({ params }: Route.LoaderArgs) => {
6161
// repeat the request cycle. This isn't a problem if the doc is in the LRU
6262
// cache but we should probably fix it anyway.
6363
return redirect(`/docs/${params["*"]}`);
64-
// eslint-disable-next-line no-empty -- should probably do something here
64+
// should probably do something here
6565
} catch {}
6666
throw data({}, { status: 404 });
6767
};

0 commit comments

Comments
 (0)