From d9565032426171e648dca4ab73b50ed56899cff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Fri, 6 Dec 2024 10:48:27 +0100 Subject: [PATCH] chore: minor monorepo cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fernando Fernández --- frontend/tsconfig.json | 2 +- package-lock.json | 2 -- packages/configs/lint/rules/base.ts | 5 ++--- packages/configs/package.json | 3 +-- packages/configs/tsconfig.json | 2 +- packages/vite-plugins/package.json | 1 - 6 files changed, 5 insertions(+), 10 deletions(-) diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 14e4df0d59d..a794d42838b 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@jellyfin-vue/configs/typescript/base.json", + "extends": "@jellyfin-vue/configs/typescript", "compilerOptions": { "types": [ "axios", diff --git a/package-lock.json b/package-lock.json index 7ffa27d9666..e5510565da1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13892,7 +13892,6 @@ }, "packages/configs": { "name": "@jellyfin-vue/configs", - "version": "0.0.1", "devDependencies": { "@eslint/js": "9.16.0", "@intlify/eslint-plugin-vue-i18n": "3.1.0", @@ -13933,7 +13932,6 @@ }, "packages/vite-plugins": { "name": "@jellyfin-vue/vite-plugins", - "version": "0.0.1", "devDependencies": { "@jellyfin-vue/configs": "*", "pretty-bytes": "6.1.1", diff --git a/packages/configs/lint/rules/base.ts b/packages/configs/lint/rules/base.ts index 4254dee3196..79daf73a4cc 100644 --- a/packages/configs/lint/rules/base.ts +++ b/packages/configs/lint/rules/base.ts @@ -7,7 +7,6 @@ import js from '@eslint/js'; import stylistic from '@stylistic/eslint-plugin'; import { configs as dependConfigs } from 'eslint-plugin-depend'; import gitignore from 'eslint-config-flat-gitignore'; -// @ts-expect-error - No types available import fileProgress from 'eslint-plugin-file-progress'; import { eqeqeqConfig } from '../shared'; @@ -20,7 +19,7 @@ const CI_environment = Boolean(process.env.CI); * @param forceCache - Whether to enable ESLint caching for this run (default `true`) * @param warningAsErrors - All warnings are treated as errors (default `true`) */ -export function getBaseConfig(packageName: string, forceCache = !CI_environment, warningAsErrors = true): Linter.Config[] { +export function getBaseConfig(packageName: string, forceCache = !CI_environment, warningAsErrors = true) { const cliOverrides = forceCache || warningAsErrors; /** @@ -176,5 +175,5 @@ export function getBaseConfig(packageName: string, forceCache = !CI_environment, 'file-progress/activate': CI_environment ? 0 : 1 } } - ]; + ] satisfies Linter.Config[]; }; diff --git a/packages/configs/package.json b/packages/configs/package.json index 5668509550c..d5b036ed128 100644 --- a/packages/configs/package.json +++ b/packages/configs/package.json @@ -1,9 +1,8 @@ { "name": "@jellyfin-vue/configs", - "version": "0.0.1", "type": "module", "exports": { - "./typescript/base.json": "./typescript/base.json", + "./typescript": "./typescript/base.json", "./lint": "./lint/index.ts", "./unocss": "./unocss.ts" }, diff --git a/packages/configs/tsconfig.json b/packages/configs/tsconfig.json index 0fc5bd9a0dc..7db195c278d 100644 --- a/packages/configs/tsconfig.json +++ b/packages/configs/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "./typescript/base.json", "include": [ - "eslint/**/*.ts", + "lint/**/*.ts", "*.ts" ] } diff --git a/packages/vite-plugins/package.json b/packages/vite-plugins/package.json index ee3426d1861..cc63970d75f 100644 --- a/packages/vite-plugins/package.json +++ b/packages/vite-plugins/package.json @@ -1,6 +1,5 @@ { "name": "@jellyfin-vue/vite-plugins", - "version": "0.0.1", "exports": "./index.ts", "type": "module", "scripts": {