mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 16:46:22 +08:00
chore(oxlint): configure rule categories in oxlint.json (#8494)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
{
|
||||
"categories": {
|
||||
"correctness": "error",
|
||||
"perf": "error"
|
||||
},
|
||||
"rules": {
|
||||
// allow
|
||||
"import/named": "allow",
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
"lint:eslint:fix": "yarn lint:eslint --fix",
|
||||
"lint:prettier": "prettier --ignore-unknown --cache --check .",
|
||||
"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
|
||||
"lint:ox": "oxlint -c oxlint.json --deny-warnings --import-plugin -D correctness -D perf",
|
||||
"lint:ox": "oxlint -c oxlint.json --deny-warnings --import-plugin",
|
||||
"lint": "yarn lint:eslint && yarn lint:prettier",
|
||||
"lint:fix": "yarn lint:eslint:fix && yarn lint:prettier:fix",
|
||||
"test": "vitest --run",
|
||||
|
||||
@@ -359,7 +359,7 @@ export class ChatCards extends WithDisposable(LitElement) {
|
||||
(
|
||||
this.host.doc.getBlock(data.currentImageSelections[0].blockId)
|
||||
?.model as ImageBlockModel
|
||||
).caption ?? '';
|
||||
)?.caption ?? '';
|
||||
}
|
||||
|
||||
this._updateCards({
|
||||
|
||||
Reference in New Issue
Block a user