Skip to content

Commit 0756f77

Browse files
committed
Migrate to Oxlint
Following the example of our other adviser products. Significantly reduces the number of dependencies. Doesn't attempt to match equivalents for every plugin but enables relevant defaults; this project has a low rate of change so we don't need a complex set up.
1 parent 45facb2 commit 0756f77

19 files changed

Lines changed: 2576 additions & 5340 deletions

.oxlintrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["unicorn", "oxc", "import", "react", "jest"],
4+
"categories": {
5+
"correctness": "error"
6+
},
7+
"rules": {},
8+
"env": {
9+
"builtin": true
10+
},
11+
"ignorePatterns": ["dist", "es", "cjs", "coverage", ".gh-pages"]
12+
}

eslint.config.mjs

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

examples/render.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { StrictMode } from 'react';
22
import { createRoot } from 'react-dom/client';
3-
import * as components from './**/*.jsx'; // eslint-disable-line import/no-unresolved, import/extensions
3+
import * as components from './**/*.jsx'; // oxlint-disable-line import/no-unresolved, import/extensions
44

55
document.querySelectorAll('[data-react-example]').forEach((node) => {
66
const parts = node.dataset.reactExample.split('/');

examples/side_collapse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
break;
1010
}
1111
cursor.open = true;
12-
} while (true); // eslint-disable-line no-constant-condition
12+
} while (true); // oxlint-disable-line no-constant-condition
1313
})();

0 commit comments

Comments
 (0)