chore: disable `no-floating-promises`

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2024-10-10 16:00:57 +08:00
parent db1d19076c
commit d4a2cf6816
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
2 changed files with 3 additions and 2 deletions

View File

@ -45,14 +45,14 @@ export const ShikiHighLighter: FC<ShikiProps> = (props) => {
if (language || !isElectronBuild) return
if (!bundledLanguagesKeysSet) {
void import("shiki/langs")
import("shiki/langs")
.then(({ bundledLanguages }) => {
langModule = bundledLanguages
bundledLanguagesKeysSet = new Set(Object.keys(bundledLanguages))
})
.then(guessLanguage)
} else {
void guessLanguage()
guessLanguage()
}
function guessLanguage() {

View File

@ -47,6 +47,7 @@ export default defineConfig(
"no-debug": noDebug,
},
rules: {
"@typescript-eslint/no-floating-promises": "off",
"no-debug/no-debug-stack": "error",
"unicorn/prefer-math-trunc": "off",
"@eslint-react/no-clone-element": 0,