Skip to content

Commit e6a9797

Browse files
committed
chore: update oxlint plugin
1 parent 9387b0d commit e6a9797

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.oxlintrc.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
3-
"plugins": null,
3+
"plugins": ["eslint", "react", "import", "oxc", "typescript"],
44
"categories": {
55
"correctness": "error",
66
"perf": "error",
77
"nursery": "error",
88
"suspicious": "error"
99
},
10-
"rules": {},
10+
"rules": {
11+
"react/react-in-jsx-scope": "off",
12+
"react/style-prop-object": "off",
13+
"import/no-unassigned-import": ["error", { "allow": ["**/*.css"] }]
14+
},
1115
"settings": {
1216
"jsx-a11y": {
1317
"polymorphicPropName": null,

docs/theme/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ function HomeLayout() {
5050
}
5151

5252
export { HomeLayout };
53+
// oxlint-disable-next-line import/export
5354
export * from '@rspress/core/theme-original';

0 commit comments

Comments
 (0)