diff options
| author | Bobby <[email protected]> | 2026-04-22 06:21:49 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-04-22 06:31:59 +0530 |
| commit | bd2154a34579902b1163fa0e0a1f51f341413060 (patch) | |
| tree | 886dbd7686b192c27bb24199d5fa922dc5803b53 | |
| parent | e577fd190fc4213d4c4d1876d79f7cfa91439988 (diff) | |
| download | hollowdark-bd2154a34579902b1163fa0e0a1f51f341413060.tar.xz hollowdark-bd2154a34579902b1163fa0e0a1f51f341413060.zip | |
Configure Prettier and ESLint base
Prettier: no semicolons, single quotes, no trailing commas, 100-column
body width, 80-column prose markdown. Svelte plugin registered for
component formatting.
ESLint is added in a separate commit since the lint rule forbidding
Math.random in gameplay code is its load-bearing purpose; the base
flat config appears there.
| -rw-r--r-- | .prettierignore | 10 | ||||
| -rw-r--r-- | .prettierrc | 26 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..57c2336 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,10 @@ +.claude/ +.svelte-kit/ +build/ +dist/ +built/ +node_modules/ +coverage/ +pnpm-lock.yaml +*.min.js +*.min.css diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..9c197bb --- /dev/null +++ b/.prettierrc @@ -0,0 +1,26 @@ +{ + "semi": false, + "singleQuote": true, + "trailingComma": "none", + "printWidth": 100, + "tabWidth": 2, + "useTabs": false, + "arrowParens": "always", + "endOfLine": "lf", + "plugins": ["prettier-plugin-svelte"], + "overrides": [ + { + "files": "*.svelte", + "options": { + "parser": "svelte" + } + }, + { + "files": "*.md", + "options": { + "printWidth": 80, + "proseWrap": "preserve" + } + } + ] +} |
