mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
chore: upgrade oxlint to v0.13.2 (#8891)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
+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