From eca81920594300ba3f7f3ceec74215244a8549dd Mon Sep 17 00:00:00 2001 From: Benno <57860196+bennoinbeta@users.noreply.github.com> Date: Thu, 28 Nov 2024 07:07:19 +0100 Subject: [PATCH] #80 fixed eslint errors --- CONTRIBUTING.md | 2 +- packages/cli/package.json | 2 +- packages/config/eslint/base.js | 2 +- packages/elevenlabs-client/eslint.config.js | 7 +------ packages/elevenlabs-client/package.json | 2 +- packages/eprel-client/eslint.config.js | 7 +------ packages/eprel-client/package.json | 2 +- packages/feature-fetch/package.json | 2 +- packages/feature-form/eslint.config.js | 2 +- packages/feature-form/package.json | 2 +- packages/feature-logger/package.json | 2 +- packages/feature-react/package.json | 2 +- packages/feature-state/package.json | 2 +- packages/figma-connect/package.json | 2 +- packages/google-webfonts-client/eslint.config.js | 7 +------ packages/google-webfonts-client/package.json | 2 +- packages/openapi-router/eslint.config.js | 2 +- packages/openapi-router/package.json | 2 +- packages/types/package.json | 2 +- packages/utils/package.json | 2 +- packages/validation-adapter/eslint.config.js | 2 +- packages/validation-adapter/package.json | 2 +- packages/validation-adapters/package.json | 2 +- packages/xml-tokenizer/package.json | 2 +- 24 files changed, 24 insertions(+), 39 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index af1048e..93f92ec 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,7 +28,7 @@ The structure of the `package.json` file in this project should adhere to a spec "scripts": { "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "start:dev": "tsc -w", - "lint": "eslint src/**", + "lint": "eslint", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", "test": "echo \"Error: no test specified\" && exit 1" diff --git a/packages/cli/package.json b/packages/cli/package.json index 6c3f5e9..e12b6aa 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -29,7 +29,7 @@ "build": "shx rm -rf dist && tsc", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "start:dev": "tsc -w", "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/config/eslint/base.js b/packages/config/eslint/base.js index 2c082cc..c8d33a1 100644 --- a/packages/config/eslint/base.js +++ b/packages/config/eslint/base.js @@ -29,6 +29,6 @@ module.exports = [ } }, { - ignores: ['dist/**'] + files: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.js', 'src/**/*.jsx'] } ]; diff --git a/packages/elevenlabs-client/eslint.config.js b/packages/elevenlabs-client/eslint.config.js index 177a38f..480fbc1 100644 --- a/packages/elevenlabs-client/eslint.config.js +++ b/packages/elevenlabs-client/eslint.config.js @@ -2,9 +2,4 @@ * @see https://eslint.org/docs/latest/use/configure/configuration-files * @type {import("eslint").Linter.Config} */ -module.exports = [ - ...require('@blgc/config/eslint/library'), - { - ignores: ['src/gen/*'] - } -]; +module.exports = [...require('@blgc/config/eslint/library'), { ignores: ['src/gen/*'] }]; diff --git a/packages/elevenlabs-client/package.json b/packages/elevenlabs-client/package.json index c99fbfd..cb10ead 100644 --- a/packages/elevenlabs-client/package.json +++ b/packages/elevenlabs-client/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "openapi:generate": "npx openapi-typescript ./resources/openapi_v1-0-0.json -o ./src/gen/v1.ts", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", diff --git a/packages/eprel-client/eslint.config.js b/packages/eprel-client/eslint.config.js index 177a38f..480fbc1 100644 --- a/packages/eprel-client/eslint.config.js +++ b/packages/eprel-client/eslint.config.js @@ -2,9 +2,4 @@ * @see https://eslint.org/docs/latest/use/configure/configuration-files * @type {import("eslint").Linter.Config} */ -module.exports = [ - ...require('@blgc/config/eslint/library'), - { - ignores: ['src/gen/*'] - } -]; +module.exports = [...require('@blgc/config/eslint/library'), { ignores: ['src/gen/*'] }]; diff --git a/packages/eprel-client/package.json b/packages/eprel-client/package.json index 08c900b..f5b48d1 100644 --- a/packages/eprel-client/package.json +++ b/packages/eprel-client/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "openapi:generate": "npx openapi-typescript ./resources/openapi_v1-0-58.yaml -o ./src/gen/v1.ts", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", diff --git a/packages/feature-fetch/package.json b/packages/feature-fetch/package.json index cfb5153..e4f9569 100644 --- a/packages/feature-fetch/package.json +++ b/packages/feature-fetch/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", diff --git a/packages/feature-form/eslint.config.js b/packages/feature-form/eslint.config.js index 4b91e2b..275e54f 100644 --- a/packages/feature-form/eslint.config.js +++ b/packages/feature-form/eslint.config.js @@ -2,4 +2,4 @@ * @see https://eslint.org/docs/latest/use/configure/configuration-files * @type {import("eslint").Linter.Config} */ -module.exports = [...require('../config/eslint/library')]; +module.exports = [...require('@blgc/config/eslint/library')]; diff --git a/packages/feature-form/package.json b/packages/feature-form/package.json index f81374e..b70ce65 100644 --- a/packages/feature-form/package.json +++ b/packages/feature-form/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", diff --git a/packages/feature-logger/package.json b/packages/feature-logger/package.json index ca1eeed..1d51de7 100644 --- a/packages/feature-logger/package.json +++ b/packages/feature-logger/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", diff --git a/packages/feature-react/package.json b/packages/feature-react/package.json index 996a0b9..ca39c64 100644 --- a/packages/feature-react/package.json +++ b/packages/feature-react/package.json @@ -46,7 +46,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", diff --git a/packages/feature-state/package.json b/packages/feature-state/package.json index 98fe8e2..a383172 100644 --- a/packages/feature-state/package.json +++ b/packages/feature-state/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", diff --git a/packages/figma-connect/package.json b/packages/figma-connect/package.json index 8b1a6a2..ce15d9b 100644 --- a/packages/figma-connect/package.json +++ b/packages/figma-connect/package.json @@ -46,7 +46,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", diff --git a/packages/google-webfonts-client/eslint.config.js b/packages/google-webfonts-client/eslint.config.js index 177a38f..275e54f 100644 --- a/packages/google-webfonts-client/eslint.config.js +++ b/packages/google-webfonts-client/eslint.config.js @@ -2,9 +2,4 @@ * @see https://eslint.org/docs/latest/use/configure/configuration-files * @type {import("eslint").Linter.Config} */ -module.exports = [ - ...require('@blgc/config/eslint/library'), - { - ignores: ['src/gen/*'] - } -]; +module.exports = [...require('@blgc/config/eslint/library')]; diff --git a/packages/google-webfonts-client/package.json b/packages/google-webfonts-client/package.json index de91fe4..5d73e85 100644 --- a/packages/google-webfonts-client/package.json +++ b/packages/google-webfonts-client/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "openapi:generate": "npx openapi-typescript ./resources/openapi-v1.yaml -o ./src/gen/v1.ts", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", diff --git a/packages/openapi-router/eslint.config.js b/packages/openapi-router/eslint.config.js index 4b91e2b..275e54f 100644 --- a/packages/openapi-router/eslint.config.js +++ b/packages/openapi-router/eslint.config.js @@ -2,4 +2,4 @@ * @see https://eslint.org/docs/latest/use/configure/configuration-files * @type {import("eslint").Linter.Config} */ -module.exports = [...require('../config/eslint/library')]; +module.exports = [...require('@blgc/config/eslint/library')]; diff --git a/packages/openapi-router/package.json b/packages/openapi-router/package.json index cf09ab8..1fa49ee 100644 --- a/packages/openapi-router/package.json +++ b/packages/openapi-router/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", diff --git a/packages/types/package.json b/packages/types/package.json index 9087854..c816682 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -49,7 +49,7 @@ "build": "shx rm -rf dist && ../../scripts/cli.sh bundle -b typesonly", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "update:latest": "pnpm update --latest" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 6893aad..9915091 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", diff --git a/packages/validation-adapter/eslint.config.js b/packages/validation-adapter/eslint.config.js index 4b91e2b..275e54f 100644 --- a/packages/validation-adapter/eslint.config.js +++ b/packages/validation-adapter/eslint.config.js @@ -2,4 +2,4 @@ * @see https://eslint.org/docs/latest/use/configure/configuration-files * @type {import("eslint").Linter.Config} */ -module.exports = [...require('../config/eslint/library')]; +module.exports = [...require('@blgc/config/eslint/library')]; diff --git a/packages/validation-adapter/package.json b/packages/validation-adapter/package.json index 0ddac03..25bcc45 100644 --- a/packages/validation-adapter/package.json +++ b/packages/validation-adapter/package.json @@ -26,7 +26,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", diff --git a/packages/validation-adapters/package.json b/packages/validation-adapters/package.json index 2865d8e..f15258b 100644 --- a/packages/validation-adapters/package.json +++ b/packages/validation-adapters/package.json @@ -57,7 +57,7 @@ "build": "shx rm -rf dist && chmod +x ../../scripts/cli.sh && ../../scripts/cli.sh bundle", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w", diff --git a/packages/xml-tokenizer/package.json b/packages/xml-tokenizer/package.json index 845ac36..a235a1e 100644 --- a/packages/xml-tokenizer/package.json +++ b/packages/xml-tokenizer/package.json @@ -28,7 +28,7 @@ "build:dev": "shx rm -rf dist && ../../scripts/cli.sh bundle --target=dev", "clean": "shx rm -rf dist && shx rm -rf node_modules && shx rm -rf .turbo", "install:clean": "pnpm run clean && pnpm install", - "lint": "eslint src/**", + "lint": "eslint", "publish:patch": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access=public", "size": "size-limit --why", "start:dev": "tsc -w",