From 14e89ada11fe27d521e52e3d1700aa9abbb96c18 Mon Sep 17 00:00:00 2001
From: nimratcoderabbit <nimrat@coderabbit.ai>
Date: Mon, 14 Jul 2025 16:35:41 -0400
Subject: [PATCH 1/7] Oxlint

---
 .oxlintrc.json | 14 ++++++++++++++
 test.ts        | 16 ++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 .oxlintrc.json
 create mode 100644 test.ts

diff --git a/.oxlintrc.json b/.oxlintrc.json
new file mode 100644
index 0000000..45fe2fb
--- /dev/null
+++ b/.oxlintrc.json
@@ -0,0 +1,14 @@
+{
+  "rules": {
+    "typescript": "error",
+    "correctness": "error",
+    "suspicious": "error",
+    "perf": "warn",
+    "style": "warn"
+  },
+  "env": {
+    "browser": true,
+    "es2021": true,
+    "node": true
+  }
+}
diff --git a/test.ts b/test.ts
new file mode 100644
index 0000000..fae3c1e
--- /dev/null
+++ b/test.ts
@@ -0,0 +1,16 @@
+function greet(name: string) {
+  console.log("Hello, " + name)
+}
+
+let unused = 123
+
+const x = 1
+x = 2
+
+const items = [1, 2, 3]
+items.forEach(async item => {
+  await fetch(`/api/${item}`)
+})
+
+greet("world")
+

From 69499476a6eb3011e99d4ccbd3ce75f473aa10cd Mon Sep 17 00:00:00 2001
From: nimratcoderabbit <nimrat@coderabbit.ai>
Date: Mon, 14 Jul 2025 16:37:33 -0400
Subject: [PATCH 2/7] Adding json to config

---
 .coderabbit.yml | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 .coderabbit.yml

diff --git a/.coderabbit.yml b/.coderabbit.yml
new file mode 100644
index 0000000..d8d3810
--- /dev/null
+++ b/.coderabbit.yml
@@ -0,0 +1,2 @@
+reviews:
+  path_filters: ["**/*.json]"

From ea98f47e9a0f9fc592460d91b8ba0c2cc5898013 Mon Sep 17 00:00:00 2001
From: nimratcoderabbit <nimrat@coderabbit.ai>
Date: Mon, 14 Jul 2025 16:38:57 -0400
Subject: [PATCH 3/7] Adding json to config

---
 .coderabbit.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.coderabbit.yml b/.coderabbit.yml
index d8d3810..8401eb4 100644
--- a/.coderabbit.yml
+++ b/.coderabbit.yml
@@ -1,2 +1,2 @@
 reviews:
-  path_filters: ["**/*.json]"
+  path_filters: ["**/*.json"]

From f25aa139141b2891db493674442257c2bb81cd33 Mon Sep 17 00:00:00 2001
From: nimratcoderabbit <nimrat@coderabbit.ai>
Date: Mon, 14 Jul 2025 16:39:44 -0400
Subject: [PATCH 4/7] Adding json to config

---
 .coderabbit.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.coderabbit.yml b/.coderabbit.yml
index 8401eb4..304a713 100644
--- a/.coderabbit.yml
+++ b/.coderabbit.yml
@@ -1,2 +1,2 @@
 reviews:
-  path_filters: ["**/*.json"]
+  path_filters: ["**/*.json", "**/*.yml"]

From 500f9cefd8c85d89e5afd97df3e307df22c5be84 Mon Sep 17 00:00:00 2001
From: alex <alex@coderabbit.ai>
Date: Mon, 14 Jul 2025 17:01:44 -0400
Subject: [PATCH 5/7] fix config

---
 .coderabbit.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.coderabbit.yml b/.coderabbit.yml
index 304a713..ab8bc55 100644
--- a/.coderabbit.yml
+++ b/.coderabbit.yml
@@ -1,2 +1,5 @@
 reviews:
-  path_filters: ["**/*.json", "**/*.yml"]
+  tools:
+    # oxlint does not run if biome is enabled
+    biome:
+      enabled: false
\ No newline at end of file

From b5e74a047e12e4dfc08bf4a31e5819db32e7efca Mon Sep 17 00:00:00 2001
From: alex <alex@coderabbit.ai>
Date: Mon, 14 Jul 2025 22:54:55 -0400
Subject: [PATCH 6/7] redo oxlint

---
 .oxlintrc.json                    | 34 ++++++++++++++++++++++---------
 .coderabbit.yml => coderabbit.yml |  1 +
 sampleReact.jsx                   | 11 ++++++++++
 test.ts                           | 16 ---------------
 4 files changed, 36 insertions(+), 26 deletions(-)
 rename .coderabbit.yml => coderabbit.yml (76%)
 create mode 100644 sampleReact.jsx
 delete mode 100644 test.ts

diff --git a/.oxlintrc.json b/.oxlintrc.json
index 45fe2fb..c5c2334 100644
--- a/.oxlintrc.json
+++ b/.oxlintrc.json
@@ -1,14 +1,28 @@
 {
+  "plugins": ["import", "typescript", "unicorn"],
+  "env": {
+    "browser": true
+  },
+  "globals": {
+    "foo": "readonly"
+  },
+  "settings": {},
   "rules": {
-    "typescript": "error",
-    "correctness": "error",
-    "suspicious": "error",
-    "perf": "warn",
-    "style": "warn"
+    "eqeqeq": "warn",
+    "import/no-cycle": "error",
+    "react/self-closing-comp": [
+      "error",
+      {
+        "html": false
+      }
+    ]
   },
-  "env": {
-    "browser": true,
-    "es2021": true,
-    "node": true
-  }
+  "overrides": [
+    {
+      "files": ["*.test.ts", "*.spec.ts"],
+      "rules": {
+        "@typescript-eslint/no-explicit-any": "off"
+      }
+    }
+  ]
 }
diff --git a/.coderabbit.yml b/coderabbit.yml
similarity index 76%
rename from .coderabbit.yml
rename to coderabbit.yml
index ab8bc55..f67dd6e 100644
--- a/.coderabbit.yml
+++ b/coderabbit.yml
@@ -1,4 +1,5 @@
 reviews:
+  path_filters: ["**/*.yml"]
   tools:
     # oxlint does not run if biome is enabled
     biome:
diff --git a/sampleReact.jsx b/sampleReact.jsx
new file mode 100644
index 0000000..f5a8c19
--- /dev/null
+++ b/sampleReact.jsx
@@ -0,0 +1,11 @@
+function TestComponent() {
+    // ruleid:react-dangerouslysetinnerhtml
+    return <div dangerouslySetInnerHTML={createMarkup()} />;
+}
+
+function OkComponent() {
+    // OK
+    const discordClientKey = '8dyfuiRyq=vVc3RRr_edRk-fK__JItpZ';
+    return {__html: 'Первый &middot; Второй'};
+}
+
diff --git a/test.ts b/test.ts
deleted file mode 100644
index fae3c1e..0000000
--- a/test.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-function greet(name: string) {
-  console.log("Hello, " + name)
-}
-
-let unused = 123
-
-const x = 1
-x = 2
-
-const items = [1, 2, 3]
-items.forEach(async item => {
-  await fetch(`/api/${item}`)
-})
-
-greet("world")
-

From d657d9d0c2e21b1d4a59841fbcca2442deca3eaf Mon Sep 17 00:00:00 2001
From: alex <alex@coderabbit.ai>
Date: Tue, 15 Jul 2025 09:27:17 -0400
Subject: [PATCH 7/7] disable other tools

---
 coderabbit.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/coderabbit.yml b/coderabbit.yml
index f67dd6e..9dad03d 100644
--- a/coderabbit.yml
+++ b/coderabbit.yml
@@ -3,4 +3,6 @@ reviews:
   tools:
     # oxlint does not run if biome is enabled
     biome:
+      enabled: false
+    yamllint:
       enabled: false
\ No newline at end of file
