chore: disable rules in oxlint (#9154)

This commit is contained in:
Brooooooklyn
2024-12-13 10:49:35 +00:00
parent 2452ccd1e5
commit ea746e3d77
53 changed files with 621 additions and 269 deletions
@@ -26,6 +26,7 @@
"@affine-test/kit": "workspace:*",
"@affine/component": "workspace:*",
"@affine/core": "workspace:*",
"@affine/electron-api": "workspace:*",
"@affine/i18n": "workspace:*",
"@affine/native": "workspace:*",
"@affine/nbstore": "workspace:*",
@@ -48,9 +49,12 @@
"@toeverything/infra": "workspace:*",
"@types/set-cookie-parser": "^2.4.10",
"@types/uuid": "^10.0.0",
"@vanilla-extract/css": "^1.16.1",
"@vitejs/plugin-react-swc": "^3.7.2",
"app-builder-lib": "^25.1.8",
"builder-util-runtime": "^9.2.10",
"cross-env": "^7.0.3",
"debug": "^4.4.0",
"electron": "^33.3.0",
"electron-log": "^5.2.4",
"electron-squirrel-startup": "1.0.1",
@@ -59,6 +63,7 @@
"fs-extra": "^11.2.0",
"glob": "^11.0.0",
"lodash-es": "^4.17.21",
"msw": "^2.6.8",
"nanoid": "^5.0.9",
"react": "^19.0.0",
"react-dom": "^19.0.0",
+10 -4
View File
@@ -80,7 +80,9 @@ async function watchLayers() {
console.log(`[layers] has changed, [re]launching electron...`);
spawnOrReloadElectron();
} else {
buildContextPromise.then(resolve);
buildContextPromise.then(resolve).catch(e => {
console.error(e);
});
initialBuild = true;
}
});
@@ -88,9 +90,13 @@ async function watchLayers() {
},
],
});
buildContextPromise.then(async buildContext => {
await buildContext.watch();
});
buildContextPromise
.then(buildContext => {
return buildContext.watch();
})
.catch(e => {
console.error(e);
});
});
}
@@ -89,4 +89,6 @@ async function make() {
await fs.remove(tmpPath);
}
make();
make().catch(e => {
console.error(e);
});
@@ -79,4 +79,6 @@ async function make() {
return artifacts;
}
make();
make().catch(e => {
console.error(e);
});
@@ -33,6 +33,7 @@ if (overrideSession) {
app.setPath('sessionData', userDataPath);
}
// eslint-disable-next-line @typescript-eslint/no-var-requires
if (require('electron-squirrel-startup')) app.quit();
if (process.env.SKIP_ONBOARDING) {
@@ -50,6 +50,6 @@ export const SpellCheckStateSchema = z.object({
enabled: z.boolean().optional(),
});
export const SpellCheckStateKey = 'spellCheckState';
export type SpellCheckStateKey = typeof SpellCheckStateKey;
export const SpellCheckStateKey = 'spellCheckState' as const;
// eslint-disable-next-line no-redeclare
export type SpellCheckStateSchema = z.infer<typeof SpellCheckStateSchema>;