Skip to content

Commit a33b464

Browse files
committed
chore: change oxlint config to jsonc
also disable one rule
1 parent 1fa4737 commit a33b464

File tree

9 files changed

+23
-19
lines changed

9 files changed

+23
-19
lines changed

backend/.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": [
3-
"../packages/oxlint-config/index.json"
3+
"../packages/oxlint-config/index.jsonc"
44
// "@monkeytype/oxlint-config"
55
],
66
"overrides": [

frontend/.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": [
3-
"../packages/oxlint-config/index.json"
3+
"../packages/oxlint-config/index.jsonc"
44
// "@monkeytype/oxlint-config"
55
],
66
"overrides": [

packages/contracts/.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": [
3-
"../oxlint-config/index.json"
3+
"../oxlint-config/index.jsonc"
44
// "@monkeytype/oxlint-config"
55
]
66
}

packages/funbox/.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": [
3-
"../oxlint-config/index.json"
3+
"../oxlint-config/index.jsonc"
44
// "@monkeytype/oxlint-config"
55
]
66
}
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,7 @@
77
},
88
"plugins": ["typescript", "unicorn", "oxc", "import", "node", "promise"],
99
"rules": {
10-
"no-unused-vars": [
11-
"error",
12-
{
13-
"argsIgnorePattern": "^(_|e|event)",
14-
"caughtErrorsIgnorePattern": "^(_|e|error)",
15-
"varsIgnorePattern": "^_"
16-
}
17-
],
10+
// disabled rules
1811
"no-await-in-loop": "off",
1912
"consistent-function-scoping": "off",
2013
"prefer-add-event-listener": "off",
@@ -23,8 +16,19 @@
2316
"no-useless-spread": "off",
2417
"no-async-endpoint-handlers": "off",
2518
"no-this-alias": "off",
26-
"no-var": "error",
2719
"no-unassigned-import": "off",
20+
"no-array-reverse": "off", // disabled for compatibility
21+
22+
// enabled rules
23+
"no-unused-vars": [
24+
"error",
25+
{
26+
"argsIgnorePattern": "^(_|e|event)",
27+
"caughtErrorsIgnorePattern": "^(_|e|error)",
28+
"varsIgnorePattern": "^_"
29+
}
30+
],
31+
"no-var": "error",
2832
"no-non-null-assertion": "error",
2933
"no-non-null-asserted-nullish-coalescing": "error",
3034
"no-explicit-any": "error",
@@ -92,10 +96,10 @@
9296
}
9397
],
9498

95-
"todo": "off",
99+
// todo: enable
96100
"no-array-for-each": "off",
97101

98-
"consider": "off",
102+
// consider these for the future
99103
"no-cycle": "off",
100104
"no-nested-ternary": "off"
101105
}

packages/release/.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": [
3-
"../oxlint-config/index.json"
3+
"../oxlint-config/index.jsonc"
44
// "@monkeytype/oxlint-config"
55
]
66
}

packages/schemas/.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": [
3-
"../oxlint-config/index.json"
3+
"../oxlint-config/index.jsonc"
44
// "@monkeytype/oxlint-config"
55
]
66
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": [
3-
"../oxlint-config/index.json"
3+
"../oxlint-config/index.jsonc"
44
// "@monkeytype/oxlint-config"
55
]
66
}

packages/util/.oxlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": [
3-
"../oxlint-config/index.json"
3+
"../oxlint-config/index.jsonc"
44
// "@monkeytype/oxlint-config"
55
]
66
}

0 commit comments

Comments
 (0)