From a4c104c49cdb26966b22f0e215b32bd147e9e849 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Fri, 27 Sep 2024 12:48:04 -0400 Subject: [PATCH] lint for examples dir --- biome.json | 5 ++++- examples/custom-receiver/tsconfig.json | 4 +--- .../getting-started-typescript/src/utils/env.ts | 2 +- .../getting-started-typescript/tsconfig.eslint.json | 13 ------------- 4 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 examples/getting-started-typescript/tsconfig.eslint.json diff --git a/biome.json b/biome.json index 588613819..73f39e3c0 100644 --- a/biome.json +++ b/biome.json @@ -1,7 +1,10 @@ { "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", "files": { - "ignore": ["docs/_site"] + "ignore": [ + "docs/_site", + "examples/**/dist" + ] }, "formatter": { "enabled": true, diff --git a/examples/custom-receiver/tsconfig.json b/examples/custom-receiver/tsconfig.json index 80e839c68..1e3120461 100644 --- a/examples/custom-receiver/tsconfig.json +++ b/examples/custom-receiver/tsconfig.json @@ -14,7 +14,5 @@ "target": "es6", "outDir": "dist" }, - "include": [ - "src/**/*" - ] + "include": ["src/**/*"] } diff --git a/examples/getting-started-typescript/src/utils/env.ts b/examples/getting-started-typescript/src/utils/env.ts index ed0f69d75..56a77a528 100644 --- a/examples/getting-started-typescript/src/utils/env.ts +++ b/examples/getting-started-typescript/src/utils/env.ts @@ -1,5 +1,5 @@ // for details see https://github.com/motdotla/dotenv/blob/master/examples/typescript/ -import { resolve } from 'path'; +import { resolve } from 'node:path'; import { config } from 'dotenv'; const pathToConfig = '../../.env'; diff --git a/examples/getting-started-typescript/tsconfig.eslint.json b/examples/getting-started-typescript/tsconfig.eslint.json deleted file mode 100644 index d19325c71..000000000 --- a/examples/getting-started-typescript/tsconfig.eslint.json +++ /dev/null @@ -1,13 +0,0 @@ -// This config is only used to allow ESLint to use a different include / exclude setting than the actual build -{ - // extend the build config to share compilerOptions - "extends": "./tsconfig.json", - "compilerOptions": { - // Setting "noEmit" prevents misuses of this config such as using it to produce a build - "noEmit": true - }, - "include": [ - // Since extending a config overwrites the entire value for "include", those value are copied here - "src/**/*", - ] -}