mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-08 00:14:07 +08:00
chore: change oxlint config to jsonc
also disable one rule
This commit is contained in:
parent
1fa473744a
commit
a33b464511
9 changed files with 23 additions and 19 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"../packages/oxlint-config/index.json"
|
||||
"../packages/oxlint-config/index.jsonc"
|
||||
// "@monkeytype/oxlint-config"
|
||||
],
|
||||
"overrides": [
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"../packages/oxlint-config/index.json"
|
||||
"../packages/oxlint-config/index.jsonc"
|
||||
// "@monkeytype/oxlint-config"
|
||||
],
|
||||
"overrides": [
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"../oxlint-config/index.json"
|
||||
"../oxlint-config/index.jsonc"
|
||||
// "@monkeytype/oxlint-config"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"../oxlint-config/index.json"
|
||||
"../oxlint-config/index.jsonc"
|
||||
// "@monkeytype/oxlint-config"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,14 +7,7 @@
|
|||
},
|
||||
"plugins": ["typescript", "unicorn", "oxc", "import", "node", "promise"],
|
||||
"rules": {
|
||||
"no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"argsIgnorePattern": "^(_|e|event)",
|
||||
"caughtErrorsIgnorePattern": "^(_|e|error)",
|
||||
"varsIgnorePattern": "^_"
|
||||
}
|
||||
],
|
||||
// disabled rules
|
||||
"no-await-in-loop": "off",
|
||||
"consistent-function-scoping": "off",
|
||||
"prefer-add-event-listener": "off",
|
||||
|
|
@ -23,8 +16,19 @@
|
|||
"no-useless-spread": "off",
|
||||
"no-async-endpoint-handlers": "off",
|
||||
"no-this-alias": "off",
|
||||
"no-var": "error",
|
||||
"no-unassigned-import": "off",
|
||||
"no-array-reverse": "off", // disabled for compatibility
|
||||
|
||||
// enabled rules
|
||||
"no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"argsIgnorePattern": "^(_|e|event)",
|
||||
"caughtErrorsIgnorePattern": "^(_|e|error)",
|
||||
"varsIgnorePattern": "^_"
|
||||
}
|
||||
],
|
||||
"no-var": "error",
|
||||
"no-non-null-assertion": "error",
|
||||
"no-non-null-asserted-nullish-coalescing": "error",
|
||||
"no-explicit-any": "error",
|
||||
|
|
@ -92,10 +96,10 @@
|
|||
}
|
||||
],
|
||||
|
||||
"todo": "off",
|
||||
// todo: enable
|
||||
"no-array-for-each": "off",
|
||||
|
||||
"consider": "off",
|
||||
// consider these for the future
|
||||
"no-cycle": "off",
|
||||
"no-nested-ternary": "off"
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"../oxlint-config/index.json"
|
||||
"../oxlint-config/index.jsonc"
|
||||
// "@monkeytype/oxlint-config"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"../oxlint-config/index.json"
|
||||
"../oxlint-config/index.jsonc"
|
||||
// "@monkeytype/oxlint-config"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"../oxlint-config/index.json"
|
||||
"../oxlint-config/index.jsonc"
|
||||
// "@monkeytype/oxlint-config"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": [
|
||||
"../oxlint-config/index.json"
|
||||
"../oxlint-config/index.jsonc"
|
||||
// "@monkeytype/oxlint-config"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue