Skip to content

Commit

Permalink
chore: update gha and vs code configs
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck committed Dec 19, 2023
1 parent 321de6a commit 54e664c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 41 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deno.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ jobs:
run: deno cache src/main.ts

- name: 🕵️ Run linter, Verify formatting
run: deno task check
run: deno task ci

- name: 🕵️ Typecheck
run: deno task typecheck

- name: 🧪 Run tests
run: deno task test
Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"recommendations": [
"denoland.vscode-deno",
"bradlc.vscode-tailwindcss"
"bradlc.vscode-tailwindcss",
"biomejs.biome"
]
}
13 changes: 8 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"deno.enable": true,
"deno.lint": true,
"[typescriptreact][typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact][javascript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
"editor.defaultFormatter": "biomejs.biome"
},
"[markdown]": {
"editor.defaultFormatter": "denoland.vscode-deno"
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "denoland.vscode-deno"
"editor.defaultFormatter": "biomejs.biome"
},
"editor.codeActionsOnSave": {
"quickfix.biome": true,
"source.organizeImports.biome": "always"
},
"css.customData": [
".vscode/tailwind.json"
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"clientKind": "git"
},
"files": {
"ignore": [".vscode", "*.gen.ts"]
"ignore": [".vscode/", "*.gen.ts"]
},
"javascript": {
"globals": ["Deno"]
Expand Down
35 changes: 2 additions & 33 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"lock": false,
"tasks": {
"check": "deno task lint && deno task typecheck",
"ci": "deno task biome ci .",
"typecheck": "deno check **/*.ts **/*.tsx",
"lint": "deno task biome check .",
"test": "deno test --allow-env --allow-read --coverage=cov/",
Expand All @@ -17,39 +18,7 @@
"esm:remove": "deno run -A https://esm.sh/v135 remove",
"biome": "deno run -A npm:@biomejs/biome"
},
"lint": {
"rules": {
"tags": [
"fresh",
"recommended"
],
"include": [
"ban-untagged-todo",
"camelcase",
"default-param-last",
"eqeqeq",
"explicit-function-return-type",
"explicit-module-boundary-types",
"guard-for-in",
"no-await-in-loop",
"no-console",
"no-const-assign",
"no-eval",
"no-external-import",
"no-implicit-declare-namespace-export",
"no-non-null-asserted-optional-chain",
"no-sparse-arrays",
"no-sync-fn-in-async-fn",
"no-throw-literal",
"no-undef",
"single-var-declarator"
]
}
},
"exclude": [
"**/_fresh/*",
"src/fresh.gen.ts"
],
"exclude": ["**/_fresh/*", "src/fresh.gen.ts"],
"imports": {
"$std/": "https://deno.land/std@0.209.0/",
"$fresh/": "https://deno.land/x/fresh@1.6.1/",
Expand Down

0 comments on commit 54e664c

Please sign in to comment.