diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..778a606 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,8 @@ +# Ignore markdown files +*.md +**/*.md + +# Other common files to ignore +node_modules/ +dist/ +.git/ diff --git a/.prettierrc b/.prettierrc index 1d33228..165637e 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,9 +1,8 @@ { - "tabWidth": 4, - "useTabs": true, - "endOfLine": "lf", - "charset": "utf-8", - "insertFinalNewline": false, - "semi": true, - "quotes": "double" + "tabWidth": 4, + "useTabs": true, + "endOfLine": "lf", + "semi": true, + "singleQuote": false, + "trailingComma": "none" } diff --git a/bun.lockb b/bun.lockb index 4f69bbc..ad74853 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 63df4c0..8ec2384 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "compile": "tsc -noEmit -skipLibCheck", "check": "svelte-check --tsconfig ./tsconfig.json", "test": "jest --config jest.config.js", - "lint": "eslint --ext .ts,.js,.svelte ." + "lint": "eslint --ext .ts,.js,.svelte .", + "format": "prettier --write --ignore-path .prettierignore ." }, "keywords": [], "author": "DecafDev", @@ -28,6 +29,7 @@ "esbuild-svelte": "^0.9.0", "jest": "^29.7.0", "obsidian": "latest", + "prettier": "^3.5.3", "svelte-check": "^4.1.3", "svelte-preprocess": "^6.0.3", "ts-auto-guard": "^5.0.0",