Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
24 changes: 4 additions & 20 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});
import prettierRecommended from "eslint-plugin-prettier/recommended";

export default [
{
Expand All @@ -26,16 +16,10 @@ export default [
"**/node_modules/",
],
},
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
),
js.configs.recommended,
...typescriptEslint.configs["flat/recommended"],
prettierRecommended,
{
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.browser,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"uuid": "^13.0.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@jest/globals": "^30.0.4",
"@oclif/test": "^4.0.4",
"@types/js-yaml": "^4.0.9",
Expand All @@ -87,7 +88,7 @@
"@typescript-eslint/eslint-plugin": "^8.58.0",
"@typescript-eslint/parser": "^8.58.0",
"@yarnpkg/pnpify": "^4.0.0-rc.48",
"eslint": "^9.29.0",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-json": "^4.0.1",
"eslint-plugin-prettier": "^5.5.1",
Expand Down
1 change: 1 addition & 0 deletions src/lib/intellij/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function generateIntellijConfigs(
} catch (error) {
throw new Error(
`Cannot create .idea directory: ${error instanceof Error ? error.message : error}`,
{ cause: error },
);
}

Expand Down
3 changes: 2 additions & 1 deletion src/lib/resources/stack/template-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,13 @@ export async function loadStackFromTemplate(
const repoName = templateNameToRepoName(templateName);
throw new Error(
`Template '${templateName}' not found. Repository '${repoName}' does not exist or does not contain a docker-compose.yml file.`,
{ cause: error },
);
}
throw error;
}

let envContent: string | null = null;
let envContent: string | null;
try {
envContent = await fetchTemplateFile(envUrl);
} catch (error) {
Expand Down
Loading