chore(oxlint): configure rule categories in oxlint.json (#8494)

Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
Don Isaac 2024-10-14 23:20:21 -04:00 committed by GitHub
parent 691e1c22c2
commit 9970138009
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,8 @@
{
"categories": {
"correctness": "error",
"perf": "error"
},
"rules": {
// allow
"import/named": "allow",

View File

@ -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",

View File

@ -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({