chore: upgrade oxlint to v0.13.2 (#8891)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
1 parent
d87a6f7068
commit
c349a24e95
35 files changed
+139
-117
No files matched your search
+12
-1
@@ -1,4 +1,6 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"plugins": ["import", "react", "typescript", "unicorn", "promise"],
|
||||
"categories": {
|
||||
"correctness": "error",
|
||||
"perf": "error"
|
||||
@@ -7,6 +9,7 @@
|
||||
// allow
|
||||
"import/named": "allow",
|
||||
"no-await-in-loop": "allow",
|
||||
"promise/no-callback-in-promise": "allow",
|
||||
// deny
|
||||
"unicorn/prefer-array-some": "error",
|
||||
"unicorn/no-useless-promise-resolve-reject": "error",
|
||||
@@ -16,5 +19,13 @@
|
||||
"ignoreTypes": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.stories.tsx"],
|
||||
"rules": {
|
||||
"react/no-array-index-key": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user