Skip to content

Commit

Permalink
chore: several adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 19, 2024
1 parent 8c6a1a1 commit e2bcdb1
Show file tree
Hide file tree
Showing 12 changed files with 288 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"recommendations": [
"biomejs.biome",
"dbaeumer.vscode-eslint",
"davidanson.vscode-markdownlint",
"streetsidesoftware.code-spell-checker"
]
Expand Down
135 changes: 124 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,127 @@
{
"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"
},
// JSON
"[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,
Expand All @@ -36,5 +140,14 @@
"addWords": true
},
"custom": true // enable the `custom` dictionary
}
},
"terminal.integrated.scrollback": 10000,
"grammarly.files.include": [
"**/README.md",
"**/readme.md",
"**/*.txt"
],
"grammarly.files.exclude": [
"**/dictionary.txt"
]
}
138 changes: 132 additions & 6 deletions .zed/settings.json
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"
]
}
}
4 changes: 0 additions & 4 deletions biome.json

This file was deleted.

2 changes: 0 additions & 2 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { dts } from 'bun-plugin-dts-auto'

await Bun.build({
entrypoints: ['src/index.ts'],

outdir: './dist',

plugins: [dts()],
})
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
},
prompt: {
messages: {
type: "Select the type of change that you're committing:",
type: 'Select the type of change that you\'re committing:',
scope: 'Select the SCOPE of this change (optional):',
customScope: 'Select the SCOPE of this change:',
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
Expand Down Expand Up @@ -40,7 +40,7 @@ export default {
emoji: ':package:',
},
{ value: 'ci', name: 'ci: 🎡 Changes to our CI configuration files and scripts', emoji: ':ferris_wheel:' },
{ value: 'chore', name: "chore: 🔨 Other changes that don't modify src or test files", emoji: ':hammer:' },
{ value: 'chore', name: 'chore: 🔨 Other changes that don\'t modify src or test files', emoji: ':hammer:' },
{ value: 'revert', name: 'revert: ⏪️ Reverts a previous commit', emoji: ':rewind:' },
],
useEmoji: false,
Expand Down
15 changes: 15 additions & 0 deletions eslint.config.js
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/**',
],
})
Loading

0 comments on commit e2bcdb1

Please sign in to comment.