AFFiNE/oxlint.json
2024-12-10 07:04:57 +00:00

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"
}
}
]
}