mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-21 01:12:04 +03:00
c349a24e95
Co-authored-by: LongYinan <lynweklm@gmail.com>
32 lines
685 B
JSON
32 lines
685 B
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["import", "react", "typescript", "unicorn", "promise"],
|
|
"categories": {
|
|
"correctness": "error",
|
|
"perf": "error"
|
|
},
|
|
"rules": {
|
|
// 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",
|
|
"import/no-cycle": [
|
|
"error",
|
|
{
|
|
"ignoreTypes": true
|
|
}
|
|
]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.stories.tsx"],
|
|
"rules": {
|
|
"react/no-array-index-key": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|