chore: bump oxlint & enable more supported rules (#14769)

This commit is contained in:
DarkSky
2026-04-03 03:36:52 +08:00
committed by GitHub
parent cdadf8588a
commit 233004f867
285 changed files with 937 additions and 1983 deletions

View File

@@ -65,7 +65,7 @@ function handleExtendedAttributes(
) {
const { data, inlineEditor, inlineRange } = ctx;
const deltas = inlineEditor.getDeltasByInlineRange(inlineRange);
// eslint-disable-next-line sonarjs/no-collapsible-if
// oxlint-disable-next-line sonarjs/no-collapsible-if
if (data && data.length > 0 && data !== '\n') {
if (
// cursor is in the between of two deltas

View File

@@ -342,7 +342,7 @@ export class RichText extends WithDisposable(ShadowlessElement) {
if (this.enableUndoRedo) {
this.disposables.addFromEvent(this, 'keydown', (e: KeyboardEvent) => {
// eslint-disable-next-line sonarjs/no-collapsible-if
// oxlint-disable-next-line sonarjs/no-collapsible-if
if (e.ctrlKey || e.metaKey) {
if (e.key === 'z' || e.key === 'Z') {
if (e.shiftKey) {