mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-21 07:51:31 +03:00
33 lines
716 B
JSON
33 lines
716 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
|
|
}
|
|
],
|
|
"import/namespace": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.stories.tsx"],
|
|
"rules": {
|
|
"react/no-array-index-key": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|