fix: disable react-in-jsx-scope rule in oxlint config (#8682)

After #8677 replaced ESLint with OxLint, the react-in-jsx-scope rule
was not disabled. This causes all commits touching JSX files to fail
the pre-commit hook (oxlint --deny-warnings).

React 17+ uses automatic JSX runtime so explicit React imports are
not required.

Fixes #8681
This commit is contained in:
darkingtail 2026-03-04 16:06:44 +08:00 committed by GitHub
parent 2578c5311b
commit be8836642a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,16 +34,20 @@
"storybook-static/**" "storybook-static/**"
], ],
"rules": { "rules": {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off", "react/prop-types": "off",
"unicorn/filename-case": "off", "unicorn/filename-case": "off",
"unicorn/no-null": "off", "unicorn/no-null": "off",
"unicorn/prevent-abbreviations": "off", "unicorn/prevent-abbreviations": "off",
"no-unused-vars": ["warn", { "no-unused-vars": [
"argsIgnorePattern": "^_", "warn",
"varsIgnorePattern": "^_", {
"caughtErrorsIgnorePattern": "^_", "argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_", "varsIgnorePattern": "^_",
"ignoreRestSiblings": true "caughtErrorsIgnorePattern": "^_",
}] "destructuredArrayIgnorePattern": "^_",
"ignoreRestSiblings": true
}
]
} }
} }