diff --git a/backend/package.json b/backend/package.json index b2076cf3..83db321f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -12,6 +12,7 @@ "format": "prettier --write src/", "format-check": "prettier --check src/", "lint": "eslint . --fix", + "pretest:unit": "npm run build", "test:unit": "vitest --run" }, "dependencies": { diff --git a/eslint.config.ts b/eslint.config.ts index 61a99fda..831b213f 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -17,7 +17,7 @@ export default [ includeIgnoreFile(gitignorePath), { ignores: ['**/dist/**', '**/.node_modules/**', '**/coverage/**', '**/.github/**'], - files: ['**/*.ts', '**/*.cts', '**.*.mts', '**/*.ts'], + files: ['**/*.ts', '**/*.cts', '**.*.mts'], }, { languageOptions: { diff --git a/frontend/eslint.config.ts b/frontend/eslint.config.ts index e9359af7..9ca1a08b 100644 --- a/frontend/eslint.config.ts +++ b/frontend/eslint.config.ts @@ -21,7 +21,7 @@ const vueConfig = defineConfigWithVueTs( { name: "app/files-to-ignore", - ignores: ["**/dist/**", "**/dist-ssr/**", "**/coverage/**"], + ignores: ["**/dist/**", "**/dist-ssr/**", "**/coverage/**", "prettier.config.js"], }, pluginVue.configs["flat/essential"], diff --git a/frontend/package.json b/frontend/package.json index 30126445..e6ce1426 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,7 +11,7 @@ "type-check": "vue-tsc --build", "format": "prettier --write src/", "format-check": "prettier --check src/", - "lint": "eslint ./{src,tests} --fix", + "lint": "eslint . --fix", "test:unit": "vitest --run", "test:e2e": "playwright test" }, diff --git a/package.json b/package.json index 588629e7..64cfd665 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "format": "npm run format --workspace=backend --workspace=common --workspace=frontend", "format-check": "npm run format-check --workspace=backend --workspace=common --workspace=frontend", "lint": "npm run lint --workspace=backend --workspace=common --workspace=frontend", + "pretest:unit": "npm run build", "test:unit": "npm run test:unit --workspace=backend --workspace=frontend" }, "workspaces": [