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
@@ -325,7 +325,7 @@ export class ReactiveYMap extends BaseReactiveYData<UnRecord, YMap<unknown>> {
protected readonly _proxy: UnRecord;
// eslint-disable-next-line sonarjs/no-identical-functions
// oxlint-disable-next-line sonarjs/no-identical-functions
constructor(
protected readonly _source: UnRecord,
protected readonly _ySource: YMap<unknown>,
@@ -337,7 +337,7 @@ export class ReactiveYMap extends BaseReactiveYData<UnRecord, YMap<unknown>> {
_ySource.observe(this._observer);
}
// eslint-disable-next-line sonarjs/no-identical-functions
// oxlint-disable-next-line sonarjs/no-identical-functions
pop(prop: string) {
const value = this._source[prop];
this._stashed.delete(prop);
@@ -331,7 +331,7 @@ export class Text<
if (delta && delta instanceof Array) {
let charNum = 0;
// eslint-disable-next-line @typescript-eslint/prefer-for-of
// oxlint-disable-next-line @typescript-eslint/prefer-for-of
for (let i = 0; i < delta.length; i++) {
const content = delta[i];
let contentText: string = content.insert || '';