diff --git a/app/.eslintrc.cjs b/app/.eslintrc.cjs index 23f7d9580..a3f337d58 100644 --- a/app/.eslintrc.cjs +++ b/app/.eslintrc.cjs @@ -1,3 +1,6 @@ +/** + * @type {import('eslint').Linter.Config} + **/ module.exports = { root: true, parser: '@typescript-eslint/parser', diff --git a/app/.prettierrc b/app/.prettierrc deleted file mode 100644 index 4a56f91fa..000000000 --- a/app/.prettierrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "useTabs": true, - "singleQuote": true, - "trailingComma": "none", - "printWidth": 100, - "plugins": ["prettier-plugin-svelte"], - "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }], - "endOfLine": "auto" -} diff --git a/app/.prettierrc.js b/app/.prettierrc.js new file mode 100644 index 000000000..040c4af37 --- /dev/null +++ b/app/.prettierrc.js @@ -0,0 +1,15 @@ +/** + * @see https://prettier.io/docs/en/configuration.html + * @type {import("prettier").Config} + */ +const config = { + useTabs: true, + singleQuote: true, + trailingComma: 'none', + printWidth: 100, + plugins: ['prettier-plugin-svelte'], + overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }], + endOfLine: 'auto' +}; + +export default config; diff --git a/app/package.json b/app/package.json index 70e8934c8..446412273 100644 --- a/app/package.json +++ b/app/package.json @@ -6,6 +6,7 @@ "engines": { "node": ">=20.11" }, + "packageManager": "pnpm@9.2.0", "scripts": { "dev": "vite dev", "test": "vitest run --mode development", diff --git a/package.json b/package.json index 42a73bdfc..5fa99fc92 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "engines": { "node": ">=20.11" }, + "packageManager": "pnpm@9.2.0", "scripts": { "dev": "pnpm --filter @gitbutler/ui run dev", "test": "pnpm --filter @gitbutler/ui run test", @@ -20,6 +21,5 @@ }, "devDependencies": { "@tauri-apps/cli": "^1.5.13" - }, - "packageManager": "pnpm@9.2.0+sha256.94fab213df221c55b6956b14a2264c21c6203cca9f0b3b95ff2fe9b84b120390" + } }