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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ __pycache__/
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
!.vscode/cspell-custom-words.txt
!.vscode/templates/
.vscode/*.log
.idea/
Expand Down
Empty file.
13 changes: 12 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "ms-vscode.vscode-typescript-next"]
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-vscode.vscode-typescript-next",
"streetsidesoftware.code-spell-checker",
"usernamehw.errorlens",
"christian-kohler.path-intellisense",
"eamodio.gitlens",
"gruntfuggly.todo-tree",
"editorconfig.editorconfig",
"yoavbls.pretty-ts-errors"
]
}
62 changes: 60 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true,
"editor.linkedEditing": true,
"editor.stickyScroll.enabled": true,
"editor.inlayHints.enabled": "onUnlessPressed",
"editor.minimap.enabled": false,
"editor.suggestSelection": "first",
"editor.quickSuggestions": {
"strings": true
},
"eslint.workingDirectories": [
{
"mode": "auto"
Expand All @@ -11,14 +21,62 @@
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.exclude": {
"**/node_modules": true,
"**/.next": true,
"**/dist": true,
"**/build": true,
"**/.turbo": true,
"**/coverage": true
},
"search.exclude": {
"**/node_modules": true,
"**/.next": true,
"**/dist": true,
"**/build": true,
"**/*.lock": true,
"**/package-lock.json": true,
"**/pnpm-lock.yaml": true
},
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.suggest.autoImports": true,
"typescript.inlayHints.parameterNames.enabled": "literals",
"typescript.inlayHints.functionLikeReturnTypes.enabled": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.wordWrap": "on",
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
}
},
"[shellscript]": {
"editor.defaultFormatter": null
},
"todo-tree.general.tags": ["TODO", "FIXME", "HACK", "XXX", "BUG", "NOTE"],
"todo-tree.highlights.defaultHighlight": {
"gutterIcon": true
},
"errorLens.enabledDiagnosticLevels": ["error", "warning"],
"errorLens.excludeBySource": ["cSpell"],
"gitlens.codeLens.enabled": false,
"gitlens.currentLine.enabled": true
}
48 changes: 48 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/packages/cspell-types/cspell.schema.json",
"version": "0.2",
"language": "en,ja",
"dictionaries": ["custom-words"],
"dictionaryDefinitions": [
{
"name": "custom-words",
"path": "./.vscode/cspell-custom-words.txt",
"addWords": true
}
Comment on lines +6 to +11

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

fd --type f "cspell-custom-words.txt"

Repository: keito4/config

Length of output: 39


🏁 Script executed:

# Verify cspell.json exists and contains the configuration mentioned in the review
cat cspell.json | head -20

Repository: keito4/config

Length of output: 529


cspell-custom-words.txt is referenced but not committed.

./.vscode/cspell-custom-words.txt does not exist in the repository. cSpell will emit a warning on every run, and with "addWords": true, attempts to persist new words via the "Add Word" VSCode command will silently fail until the file exists. Commit an empty file alongside this config.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cspell.json` around lines 6 - 11, The cspell.json references a custom word
list at "./.vscode/cspell-custom-words.txt" under "dictionaryDefinitions" with
"addWords": true, but that file is missing; create and commit an empty
.vscode/cspell-custom-words.txt file (or add initial words) to the repo so
cSpell and the VSCode "Add Word" action can write to it without warnings, then
ensure the file is tracked in git.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

fd --type f "cspell-custom-words.txt"

Repository: keito4/config

Length of output: 39


Add the missing .vscode/cspell-custom-words.txt file.

The file referenced in cspell.json (line 9) does not exist in the repository. This will cause cSpell to emit a warning on every invocation, and addWords: true will fail to persist user-added words. Create an empty .vscode/cspell-custom-words.txt file to resolve this.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cspell.json` around lines 6 - 11, The cspell configuration in cspell.json
references a non-existent custom dictionary path ("dictionaryDefinitions" entry
with "path": "./.vscode/cspell-custom-words.txt" and "addWords": true); create
the file .vscode/cspell-custom-words.txt (an empty file is fine) so cSpell no
longer warns and user-added words can be persisted.

],
"words": [
"esbenp",
"dbaeumer",
"bradlc",
"vscjava",
"dhoeric",
"joshspicer",
"schlich",
"intellectronica",
"hookify",
"moby",
"supabase",
"planetscale",
"pubspec",
"devcontainer",
"devcontainers",
"codex",
"raycast",
"fullstack",
"monorepo",
"workspaces",
"commitlint",
"husky",
"vitest",
"pnpm",
"npx",
"tsx",
"nextjs",
"tailwindcss",
"vercel",
"keito",
"ghcr"
],
"ignorePaths": ["node_modules", ".git", "dist", "build", ".next", "*.lock", "package-lock.json", "pnpm-lock.yaml"],
"ignoreRegExpList": ["/[a-z0-9]{40}/gi", "sha256:[a-f0-9]{64}"]
}
Loading