Skip to content

Commit b5e74a0

Browse files
redo oxlint
1 parent 500f9ce commit b5e74a0

File tree

4 files changed

+36
-26
lines changed

4 files changed

+36
-26
lines changed

.oxlintrc.json

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
{
2+
"plugins": ["import", "typescript", "unicorn"],
3+
"env": {
4+
"browser": true
5+
},
6+
"globals": {
7+
"foo": "readonly"
8+
},
9+
"settings": {},
210
"rules": {
3-
"typescript": "error",
4-
"correctness": "error",
5-
"suspicious": "error",
6-
"perf": "warn",
7-
"style": "warn"
11+
"eqeqeq": "warn",
12+
"import/no-cycle": "error",
13+
"react/self-closing-comp": [
14+
"error",
15+
{
16+
"html": false
17+
}
18+
]
819
},
9-
"env": {
10-
"browser": true,
11-
"es2021": true,
12-
"node": true
13-
}
20+
"overrides": [
21+
{
22+
"files": ["*.test.ts", "*.spec.ts"],
23+
"rules": {
24+
"@typescript-eslint/no-explicit-any": "off"
25+
}
26+
}
27+
]
1428
}

.coderabbit.yml renamed to coderabbit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
reviews:
2+
path_filters: ["**/*.yml"]
23
tools:
34
# oxlint does not run if biome is enabled
45
biome:

sampleReact.jsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
function TestComponent() {
2+
// ruleid:react-dangerouslysetinnerhtml
3+
return <div dangerouslySetInnerHTML={createMarkup()} />;
4+
}
5+
6+
function OkComponent() {
7+
// OK
8+
const discordClientKey = '8dyfuiRyq=vVc3RRr_edRk-fK__JItpZ';
9+
return {__html: 'Первый &middot; Второй'};
10+
}
11+

test.ts

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

0 commit comments

Comments
 (0)