From 1aa5ba4590aca39344f996bb506e9a5288e1a507 Mon Sep 17 00:00:00 2001 From: Ron Cohen Date: Wed, 8 Apr 2026 09:40:46 +0200 Subject: [PATCH] Restore supported lint checks in oxlint --- .oxlintrc.json | 14 +++++++++++++- packages/browser-sdk/example/feedback/Feedback.jsx | 2 +- .../example/components/Context.tsx | 2 +- packages/react-sdk/dev/plain/app.tsx | 6 +++--- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.oxlintrc.json b/.oxlintrc.json index 07b6d739..c9156b1a 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -3,11 +3,23 @@ "plugins": ["typescript", "react", "import"], "rules": { "no-unused-vars": "warn", + "no-shadow": "warn", + "no-empty-function": "warn", "unicorn/no-thenable": "off", "react/exhaustive-deps": "warn", + "react/prefer-es6-class": "error", + "react/self-closing-comp": "error", + "react/jsx-filename-extension": [ + "warn", + { + "extensions": [".mdx", ".jsx", ".tsx"] + } + ], + "import/first": "warn", "import/no-duplicates": "warn", "sort-imports": "off", - "typescript/no-floating-promises": "error" + "typescript/no-floating-promises": "error", + "typescript/switch-exhaustiveness-check": "warn" }, "ignorePatterns": [ "build/", diff --git a/packages/browser-sdk/example/feedback/Feedback.jsx b/packages/browser-sdk/example/feedback/Feedback.jsx index e5546436..07180d86 100644 --- a/packages/browser-sdk/example/feedback/Feedback.jsx +++ b/packages/browser-sdk/example/feedback/Feedback.jsx @@ -72,7 +72,7 @@ export const FeedbackForm = () => {