mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-22 00:37:05 +08:00
feat: bump eslint & oxlint (#14452)
#### PR Dependency Tree * **PR #14452** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved null-safety, dependency tracking, upload validation, and error logging for more reliable uploads, clipboard, calendar linking, telemetry, PDF/theme printing, and preview/zoom behavior. * Tightened handling of all-day calendar events (missing date now reported). * **Deprecations** * Removed deprecated RadioButton and RadioButtonGroup; use RadioGroup. * **Chores** * Unified and upgraded linting/config, reorganized imports, and standardized binary handling for more consistent builds and tooling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -35,7 +35,7 @@ export class InitCommand extends Command {
|
||||
this.genWorkspaceInfo,
|
||||
'typescript',
|
||||
],
|
||||
[this.workspace.join('oxlint.json'), this.genOxlintConfig, 'json'],
|
||||
[this.workspace.join('.oxlintrc.json'), this.genOxlintConfig, 'json'],
|
||||
...this.workspace.packages
|
||||
.filter(p => p.isTsProject)
|
||||
.map(
|
||||
@@ -68,7 +68,7 @@ export class InitCommand extends Command {
|
||||
|
||||
genOxlintConfig = () => {
|
||||
const json = JSON.parse(
|
||||
readFileSync(this.workspace.join('oxlint.json').value, 'utf-8')
|
||||
readFileSync(this.workspace.join('.oxlintrc.json').value, 'utf-8')
|
||||
);
|
||||
|
||||
const ignoreList = readFileSync(
|
||||
|
||||
@@ -95,7 +95,7 @@ const docs = resolvedFiles.map(filePath => {
|
||||
return readYjsDocFromFile(filePath);
|
||||
} catch (error) {
|
||||
const details = error instanceof Error ? error.message : String(error);
|
||||
fail(`Failed to read/parse snapshot file "${filePath}": ${details}`);
|
||||
return fail(`Failed to read/parse snapshot file "${filePath}": ${details}`);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -137,7 +137,7 @@ switch (mode) {
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
mode satisfies never;
|
||||
fail(`Unknown mode: ${mode}`);
|
||||
const unreachableMode: never = mode;
|
||||
fail(`Unknown mode: ${unreachableMode}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Array as YArray, Doc, Map as YMap } from 'yjs';
|
||||
import type { Doc } from 'yjs';
|
||||
import { Array as YArray, Map as YMap } from 'yjs';
|
||||
|
||||
import { diffKeyedRecords, type KeyedRecord } from './diff';
|
||||
import { formatValue, toPlain } from './plain';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Doc, Map as YMap } from 'yjs';
|
||||
import type { Doc } from 'yjs';
|
||||
import { Map as YMap } from 'yjs';
|
||||
|
||||
import { diffKeyedRecords, type KeyedRecord } from './diff';
|
||||
import { formatValue, toPlain } from './plain';
|
||||
|
||||
Reference in New Issue
Block a user