diff --git a/.gitignore b/.gitignore index d26f2de..55aaa73 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,8 @@ packages/media/.env .npmrc /.verdaccio .idea -.vscode +.vscode/* +!.vscode/settings.json .git_old docker/tmp .debug diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7787afb --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,19 @@ +{ + "typescript.tsdk": "node_modules/typescript/lib", + "biome.enabled": true, + "editor.defaultFormatter": "biomejs.biome", + "editor.codeActionsOnSave": { + "source.organizeImports.biome": "explicit", + "source.fixAll.biome": "explicit" + }, + "typescript.preferences.importModuleSpecifier": "non-relative", + "typescript.preferences.autoImportFileExcludePatterns": [ + "**/dist/**", + "**/node_modules/**/dist/**", + "**/node_modules/**/!(src|lib|esm)/**" // optional, stricter + ], + "typescript.preferences.includePackageJsonAutoImports": "on", + "typescript.tsserver.watchOptions": { + "excludeDirectories": ["**/dist", "**/node_modules/**/dist"] + } +} diff --git a/app/.vscode/settings.json b/app/.vscode/settings.json new file mode 100644 index 0000000..adf0255 --- /dev/null +++ b/app/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "typescript.preferences.includePackageJsonAutoImports": "off", + "typescript.suggest.autoImports": true, + "typescript.preferences.importModuleSpecifier": "relative", + "search.exclude": { + "**/dist/**": true, + "**/node_modules/**": true + }, + "files.exclude": { + "**/dist/**": true + } +} diff --git a/biome.json b/biome.json index 28818cb..95ea38a 100644 --- a/biome.json +++ b/biome.json @@ -1,14 +1,13 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "organizeImports": { - "enabled": true - }, + "$schema": "https://biomejs.dev/schemas/2.3.3/schema.json", + "assist": { "actions": { "source": { "organizeImports": "on" } } }, "vcs": { "defaultBranch": "main" }, "formatter": { "enabled": true, - "indentStyle": "space" + "indentStyle": "space", + "formatWithErrors": true }, "javascript": { "formatter": { @@ -30,27 +29,26 @@ } }, "files": { - "ignore": [ - "**/node_modules/**", - "node_modules/**", - "**/.cache/**", - "**/.wrangler/**", - "**/build/**", - "**/dist/**", - "**/data.sqld/**", - "data.sqld/**", - "public/**", - ".history/**" + "includes": [ + "**", + "!**/node_modules", + "!**/node_modules", + "!**/.cache", + "!**/.wrangler", + "!**/build", + "!**/dist", + "!**/data.sqld", + "!**/data.sqld", + "!**/public", + "!**/.history" ] }, "linter": { "enabled": true, - "ignore": ["**/*.spec.ts"], + "includes": ["**"], "rules": { "recommended": true, - "a11y": { - "all": false - }, + "a11y": {}, "correctness": { "useExhaustiveDependencies": "off", "noUnreachable": "warn", @@ -70,7 +68,7 @@ "noArrayIndexKey": "off", "noImplicitAnyLet": "warn", "noConfusingVoidType": "off", - "noConsoleLog": "warn" + "noConsole": { "level": "warn", "options": { "allow": ["log"] } } }, "security": { "noDangerouslySetInnerHtml": "off"