generated from stacksjs/ts-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a590fe7
commit 2f01319
Showing
8 changed files
with
289 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,153 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
// Disable the default formatter, use eslint instead | ||
"prettier.enable": false, | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.formatOnSave": true, | ||
"biome.enabled": false, | ||
"editor.formatOnSave": false, | ||
// Auto fix | ||
"editor.codeActionsOnSave": { | ||
"quickfix.biome": "explicit", | ||
"source.organizeImports.biome": "explicit" | ||
"source.fixAll.eslint": "explicit", | ||
"source.organizeImports": "never" | ||
}, | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
// Silent the stylistic rules in you IDE, but still auto fix them | ||
"eslint.rules.customizations": [ | ||
{ | ||
"rule": "style/*", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "format/*", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-indent", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-spacing", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-spaces", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-order", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-dangle", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-newline", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*quotes", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*semi", | ||
"severity": "off", | ||
"fixable": true | ||
} | ||
], | ||
// Enable eslint for all supported languages | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"vue", | ||
"html", | ||
"markdown", | ||
"json", | ||
"jsonc", | ||
"yaml", | ||
"toml", | ||
"xml", | ||
"gql", | ||
"graphql", | ||
"astro", | ||
"svelte", | ||
"css", | ||
"less", | ||
"scss", | ||
"pcss", | ||
"postcss" | ||
], | ||
"[stx]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
// Shell | ||
"[shellscript]": { | ||
"editor.defaultFormatter": "foxundermoon.shell-format" | ||
}, | ||
// Markdown | ||
"[markdown]": { | ||
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint", | ||
"editor.formatOnSave": true | ||
}, | ||
"[dockerfile]": { | ||
"editor.defaultFormatter": "foxundermoon.shell-format" | ||
}, | ||
"markdownlint.config": { | ||
"default": true, | ||
"MD033": { | ||
"allowed_elements": [ | ||
"details", | ||
"summary", | ||
"VPTeamPage", | ||
"VPTeamPageTitle", | ||
"VPTeamMembers", | ||
"script" | ||
] | ||
}, | ||
"MD041": false | ||
}, | ||
"typescript.preferGoToSourceDefinition": true, | ||
"editor.quickSuggestions": { | ||
"strings": true | ||
}, | ||
"git.enableSmartCommit": true, | ||
"npm.enableRunFromFolder": true, | ||
"npm.packageManager": "bun", | ||
"editor.gotoLocation.multipleDefinitions": "goto", | ||
"search.exclude": { | ||
"**/node_modules": true, | ||
"**/cdk.out": true, | ||
"**/dist": true, | ||
"CHANGELOG.md": true | ||
}, | ||
|
||
"cSpell.ignorePaths": ["node_modules"], | ||
"cSpell.dictionaries": ["custom-dictionary"], | ||
"cSpell.diagnosticLevel": "Hint", | ||
"cSpell.customDictionaries": { | ||
"bun-plugin-yml": { | ||
"bun-plugin-dtsx": { | ||
"name": "custom-dictionary", | ||
"path": "./.vscode/dictionary.txt", | ||
"scope": "user", | ||
"addWords": true | ||
}, | ||
"custom": true | ||
} | ||
"custom": true // enable the `custom` dictionary | ||
}, | ||
"terminal.integrated.scrollback": 10000, | ||
"grammarly.files.include": [ | ||
"**/README.md", | ||
"**/readme.md", | ||
"**/*.txt" | ||
], | ||
"grammarly.files.exclude": [ | ||
"**/dictionary.txt" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,139 @@ | ||
// For a full list of overridable settings, and general information on folder-specific settings, | ||
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files | ||
{ | ||
"formatter": { | ||
"language_server": { | ||
"name": "biome" | ||
"languages": { | ||
"JavaScript": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"TypeScript": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"HTML": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"CSS": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"Markdown": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"JSON": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"JSONC": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"YAML": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"XML": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
}, | ||
"TOML": { | ||
"formatter": { | ||
"code_actions": { | ||
"source.fixAll.eslint": true | ||
} | ||
} | ||
} | ||
}, | ||
"code_actions_on_format": { | ||
"source.fixAll.biome": true, | ||
"source.organizeImports.biome": true | ||
"lsp": { | ||
"eslint": { | ||
"settings": { | ||
"rulesCustomizations": [ | ||
{ | ||
"rule": "style/*", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "format/*", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-indent", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-spacing", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-spaces", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-order", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-dangle", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*-newline", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*quotes", | ||
"severity": "off", | ||
"fixable": true | ||
}, | ||
{ | ||
"rule": "*semi", | ||
"severity": "off", | ||
"fixable": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"file_types": { | ||
"JavaScript": [ | ||
"buddy" | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import stacks from '@stacksjs/eslint-config' | ||
|
||
export default stacks({ | ||
stylistic: { | ||
indent: 2, | ||
quotes: 'single', | ||
}, | ||
|
||
typescript: true, | ||
jsonc: true, | ||
yaml: true, | ||
ignores: [ | ||
'fixtures/**', | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters