Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "unicorn", "oxc", "import"],
"plugins": [
"eslint",
"typescript",
"unicorn",
"oxc",
"import",
"react",
"react-perf"
],
"jsPlugins": [
{
"name": "mocha",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-web-docs/src/docs/components/DynamicTOC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function DynamicTOC({
} else {
row.appendChild(toc);
}
}, []);
}, [minHeadingLevel, maxHeadingLevel]);

return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function ScrollToHashId() {

setTimeout(scrollToId, delay);
}
// oxlint-disable-next-line eslint-plugin-react-hooks/exhaustive-deps
}, []);

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const useHash = () => {
return () => {
window.removeEventListener("hashchange", onHashChange);
};
}, []);
}, [onHashChange]);

return hash;
};
2 changes: 1 addition & 1 deletion packages/lib-vscode-tutorial-webview/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function App({ vscode }: Props) {
);

vscode.postMessage({ type: "getInitialState" });
}, []);
}, [vscode]);

if (state == null) {
// Just show nothing while we're waiting for initial state
Expand Down
4 changes: 2 additions & 2 deletions packages/lib-vscode-tutorial-webview/src/TutorialStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export function TutorialStep({ state, vscode }: Props) {
case "string":
return <span key={j}>{fragment.value}</span>;
case "command":
return <Command spokenForm={fragment.value} />;
return <Command key={j} spokenForm={fragment.value} />;
case "term":
return <span>"{fragment.value}"</span>;
return <span key={j}>"{fragment.value}"</span>;
default: {
// Ensure we handle all cases
const _unused: never = fragment;
Expand Down
Loading