Skip to content

Commit df1070c

Browse files
committed
rule updates
Signed-off-by: Ryan Bower <rbower@qti.qualcomm.com>
1 parent d966044 commit df1070c

4 files changed

Lines changed: 30 additions & 30 deletions

File tree

packages/configs/oxlint-config/rule-reference/oxc.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,41 +33,41 @@ const correctness: DummyRuleMap = {
3333
}
3434

3535
const pedantic: DummyRuleMap = {
36-
// TODO: decide whether to enable. default=off; fixable=💡; version=v1.22.0
36+
// default=off; category=pedantic; fixable=💡; version=v1.22.0
3737
"oxc/branches-sharing-code": "off",
3838
}
3939

4040
const perf: DummyRuleMap = {
41-
// TODO: decide whether to enable. default=off; fixable=none; version=v0.0.19
41+
// default=off; category=perf; fixable=none; version=v0.0.19
4242
"oxc/no-accumulating-spread": "off",
43-
// TODO: decide whether to enable. default=off; fixable=💡; version=v0.11.0
43+
// default=off; category=perf; fixable=💡; version=v0.11.0
4444
"oxc/no-map-spread": "off",
4545
}
4646

4747
const restriction: DummyRuleMap = {
48-
// TODO: decide whether to enable. default=off; fixable=💡; version=v0.0.3
48+
// default=off; category=restriction; fixable=💡; version=v0.0.3
4949
"oxc/bad-bitwise-operator": "off",
50-
// TODO: decide whether to enable. default=off; fixable=none; version=v0.4.2
50+
// default=off; category=restriction; fixable=none; version=v0.4.2
5151
"oxc/no-async-await": "off",
52-
// TODO: decide whether to enable. default=off; fixable=none; version=v0.3.0
52+
// default=off; category=restriction; fixable=none; version=v0.3.0
5353
"oxc/no-barrel-file": "off",
54-
// TODO: decide whether to enable. default=off; fixable=🛠️; version=v0.4.2
54+
// default=off; category=restriction; fixable=🛠️; version=v0.4.2
5555
"oxc/no-const-enum": "off",
56-
// TODO: decide whether to enable. default=off; fixable=none; version=v0.5.0
56+
// default=off; category=restriction; fixable=none; version=v0.5.0
5757
"oxc/no-optional-chaining": "off",
58-
// TODO: decide whether to enable. default=off; fixable=none; version=v0.4.2
58+
// default=off; category=restriction; fixable=none; version=v0.4.2
5959
"oxc/no-rest-spread-properties": "off",
6060
}
6161

6262
const suspicious: DummyRuleMap = {
63-
// TODO: decide whether to enable. default=off; fixable=💡; version=v0.1.1
63+
// default=off; category=suspicious; fixable=💡; version=v0.1.1
6464
"oxc/approx-constant": "off",
65-
// TODO: decide whether to enable. default=off; fixable=💡; version=v0.1.1
65+
// default=off; category=suspicious; fixable=💡; version=v0.1.1
6666
"oxc/misrefactored-assign-op": "off",
67-
// TODO: decide whether to enable. default=off; fixable=none; version=v0.9.2
67+
// default=off; category=suspicious; fixable=none; version=v0.9.2
6868
"oxc/no-async-endpoint-handlers": "off",
69-
// TODO: decide whether to enable. default=off; fixable=none; version=v1.33.0
70-
"oxc/no-this-in-exported-function": "off",
69+
// default=off; category=suspicious; fixable=none; version=v1.33.0
70+
"oxc/no-this-in-exported-function": "error",
7171
}
7272

7373
export const oxcRules: DummyRuleMap = {

packages/configs/oxlint-config/rule-reference/unicorn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const restriction: DummyRuleMap = {
149149
// default=off; category=restriction; fixable=🚧; version=v0.3.3
150150
"unicorn/no-anonymous-default-export": "off",
151151
// default=off; category=restriction; fixable=🚧; version=v0.0.19
152-
"unicorn/no-array-for-each": "error",
152+
"unicorn/no-array-for-each": "warn",
153153
// default=off; category=restriction; fixable=none; version=v0.0.19
154154
"unicorn/no-array-reduce": "off",
155155
// default=off; category=restriction; fixable=none; version=v0.0.18
@@ -173,7 +173,7 @@ const restriction: DummyRuleMap = {
173173
}
174174

175175
const style: DummyRuleMap = {
176-
// TODO: decide whether to enable. default=off; fixable=🛠️; version=v0.0.14
176+
// default=off; category=style; fixable=🛠️; version=v0.0.14
177177
"unicorn/catch-error-name": "off",
178178
// default=off; category=style; fixable=🛠️; version=v0.15.13
179179
"unicorn/consistent-date-clone": "off",

packages/configs/oxlint-config/src/internal/oxc.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,28 @@ const correctness: DummyRuleMap = {
2020
}
2121

2222
const pedantic: DummyRuleMap = {
23-
// "oxc/branches-sharing-code": "off",
23+
"oxc/branches-sharing-code": "off",
2424
}
2525

2626
const perf: DummyRuleMap = {
27-
// "oxc/no-accumulating-spread": "off",
28-
// "oxc/no-map-spread": "off",
27+
"oxc/no-accumulating-spread": "off",
28+
"oxc/no-map-spread": "off",
2929
}
3030

3131
const restriction: DummyRuleMap = {
32-
// "oxc/bad-bitwise-operator": "off",
33-
// "oxc/no-async-await": "off",
34-
// "oxc/no-barrel-file": "off",
35-
// "oxc/no-const-enum": "off",
36-
// "oxc/no-optional-chaining": "off",
37-
// "oxc/no-rest-spread-properties": "off",
32+
"oxc/bad-bitwise-operator": "off",
33+
"oxc/no-async-await": "off",
34+
"oxc/no-barrel-file": "off",
35+
"oxc/no-const-enum": "off",
36+
"oxc/no-optional-chaining": "off",
37+
"oxc/no-rest-spread-properties": "off",
3838
}
3939

4040
const suspicious: DummyRuleMap = {
41-
// "oxc/approx-constant": "off",
42-
// "oxc/misrefactored-assign-op": "off",
43-
// "oxc/no-async-endpoint-handlers": "off",
44-
// "oxc/no-this-in-exported-function": "off",
41+
"oxc/approx-constant": "off",
42+
"oxc/misrefactored-assign-op": "off",
43+
"oxc/no-async-endpoint-handlers": "off",
44+
"oxc/no-this-in-exported-function": "off",
4545
}
4646

4747
export const oxcRules: DummyRuleMap = {

packages/configs/oxlint-config/src/internal/unicorn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const restriction: DummyRuleMap = {
9898
}
9999

100100
const style: DummyRuleMap = {
101-
// "unicorn/catch-error-name": "off",
101+
"unicorn/catch-error-name": "off",
102102
"unicorn/consistent-date-clone": "off",
103103
// "unicorn/consistent-existence-index-check": "off",
104104
// "unicorn/consistent-template-literal-escape": "off",

0 commit comments

Comments
 (0)