Skip to content

Commit 0d0b23d

Browse files
committed
enable perf rules
1 parent e38a6eb commit 0d0b23d

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.oxlintrc.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"plugins": ["eslint", "typescript", "unicorn", "react", "react-perf", "oxc", "import"],
55
"categories": {
66
"correctness": "error",
7+
"perf": "error",
78
"suspicious": "warn"
89
},
910
"rules": {
@@ -20,7 +21,16 @@
2021
"rules": {
2122
"no-console": "off",
2223
"no-unsafe-type-assertion": "off",
23-
"consistent-function-scoping": "off"
24+
"consistent-function-scoping": "off",
25+
"jsx-no-new-object-as-prop": "off"
26+
}
27+
},
28+
{
29+
"files": ["demo/**"],
30+
"rules": {
31+
"jsx-no-new-object-as-prop": "off",
32+
"jsx-no-new-array-as-prop": "off",
33+
"jsx-no-jsx-as-prop": "off"
2434
}
2535
}
2636
]

0 commit comments

Comments
 (0)