mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Enable the @typescript-eslint/no-floating-promises rule
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
+3
-1
@@ -8,7 +8,8 @@
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2020,
|
||||
"sourceType": "module"
|
||||
"sourceType": "module",
|
||||
"project": ["./tsconfig.json"]
|
||||
},
|
||||
"plugins": ["svelte3", "@typescript-eslint"],
|
||||
"overrides": [
|
||||
@@ -49,6 +50,7 @@
|
||||
],
|
||||
"eol-last": ["error"],
|
||||
"key-spacing": ["error"],
|
||||
"@typescript-eslint/no-floating-promises": "error",
|
||||
"@typescript-eslint/object-curly-spacing": ["error", "always"],
|
||||
"@typescript-eslint/type-annotation-spacing": ["error"],
|
||||
"@typescript-eslint/naming-convention": [
|
||||
|
||||
@@ -72,7 +72,7 @@ test("show source tree at specific revision", async ({ page }) => {
|
||||
await expect(page.getByTitle("Current branch")).toContainText(
|
||||
"335dd6dc89b535a4a31e9422c803199bb6b0a09a",
|
||||
);
|
||||
expect(page.locator(".source-tree")).toHaveText("bin/ src/");
|
||||
await expect(page.locator(".source-tree")).toHaveText("bin/ src/");
|
||||
await expectCounts({ commits: 2, contributors: 1 }, page);
|
||||
});
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { FullConfig } from "@playwright/test";
|
||||
import { seedPort, seedRemote } from "@tests/support/fixtures.js";
|
||||
|
||||
export default async function globalSetup(_config: FullConfig): Promise<void> {
|
||||
assertHttpApiRunning();
|
||||
await assertHttpApiRunning();
|
||||
}
|
||||
|
||||
// Assert that the test http-api is running. If it is not running, throw an
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "@tsconfig/svelte/tsconfig.json",
|
||||
"include": ["src", "tests", "httpd-client"],
|
||||
"include": ["src", "tests", "httpd-client", "./*.js", "./*.ts"],
|
||||
"exclude": ["node_modules/*"],
|
||||
"compilerOptions": {
|
||||
"target": "es2020",
|
||||
|
||||
Reference in New Issue
Block a user