mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 17:21:48 +03:00
chore(oxlint): configure rule categories in oxlint.json (#8494)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
parent
691e1c22c2
commit
9970138009
@ -1,4 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
"categories": {
|
||||||
|
"correctness": "error",
|
||||||
|
"perf": "error"
|
||||||
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
// allow
|
// allow
|
||||||
"import/named": "allow",
|
"import/named": "allow",
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
"lint:eslint:fix": "yarn lint:eslint --fix",
|
"lint:eslint:fix": "yarn lint:eslint --fix",
|
||||||
"lint:prettier": "prettier --ignore-unknown --cache --check .",
|
"lint:prettier": "prettier --ignore-unknown --cache --check .",
|
||||||
"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
|
"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": "yarn lint:eslint && yarn lint:prettier",
|
||||||
"lint:fix": "yarn lint:eslint:fix && yarn lint:prettier:fix",
|
"lint:fix": "yarn lint:eslint:fix && yarn lint:prettier:fix",
|
||||||
"test": "vitest --run",
|
"test": "vitest --run",
|
||||||
|
@ -359,7 +359,7 @@ export class ChatCards extends WithDisposable(LitElement) {
|
|||||||
(
|
(
|
||||||
this.host.doc.getBlock(data.currentImageSelections[0].blockId)
|
this.host.doc.getBlock(data.currentImageSelections[0].blockId)
|
||||||
?.model as ImageBlockModel
|
?.model as ImageBlockModel
|
||||||
).caption ?? '';
|
)?.caption ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
this._updateCards({
|
this._updateCards({
|
||||||
|
Loading…
Reference in New Issue
Block a user