summaryrefslogtreecommitdiff
path: root/deno.jsonc
diff options
context:
space:
mode:
Diffstat (limited to 'deno.jsonc')
-rw-r--r--deno.jsonc93
1 files changed, 93 insertions, 0 deletions
diff --git a/deno.jsonc b/deno.jsonc
new file mode 100644
index 0000000..f53c068
--- /dev/null
+++ b/deno.jsonc
@@ -0,0 +1,93 @@
+{
+ "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
+ "tasks": {
+ "dev": "astro dev",
+ "build": "astro build",
+ "preview": "astro preview",
+ "build:preview": {
+ "command": "deno task preview",
+ "dependencies": [
+ "build"
+ ]
+ },
+ "astro": "astro",
+ "test:unit": "deno test --doc --junit-path=report.junit.xml --permit-no-files --shuffle --trace-leaks src",
+ "test:unit:coverage": "deno task test:unit --coverage",
+ "test:unit:inspect": "deno task test:unit --inspect-brk",
+ "test:unit:watch": "deno task test:unit --watch --no-clear-screen",
+ "test:unit:watch:coverage": "deno task test:unit:coverage --watch --no-clear-screen",
+ "test:unit:watch:inspect": "deno task test:unit:inspect --watch --no-clear-screen",
+ "test:check": "deno --doc",
+ "coverage": {
+ "command": "deno coverage --html --exclude=\"node_modules/,dist/\"",
+ "dependencies": [
+ "test:unit"
+ ]
+ },
+ "doc": "deno doc --html --name=\"<cravodeabril.pt>\"",
+ "doc:lint": "deno doc --lint --html --name=\"<cravodeabril.pt>\""
+ },
+ "license": "AGPL-3.0-or-later",
+ "fmt": {
+ "useTabs": false,
+ "lineWidth": 80,
+ "semiColons": true,
+ "indentWidth": 2,
+ "singleQuote": false
+ },
+ "lint": {
+ "rules": {
+ "tags": [
+ "jsr",
+ "jsx",
+ "recommended"
+ ],
+ "include": [
+ "ban-untagged-todo",
+ "camelcase",
+ "default-param-last",
+ "eqeqeq",
+ // "explicit-function-return-type",
+ "explicit-module-boundary-types",
+ "guard-for-in",
+ "jsx-boolean-value",
+ "no-await-in-loop",
+ "no-boolean-literal-for-arguments",
+ "no-const-assign",
+ "no-eval",
+ // "no-external-import",
+ "no-implicit-declare-namespace-export",
+ "no-inferrable-types",
+ "no-non-null-asserted-optional-chain",
+ "no-non-null-assertion",
+ "no-self-compare",
+ "no-sparse-arrays",
+ "no-sync-fn-in-async-fn",
+ "no-throw-literal",
+ "no-top-level-await",
+ "no-undef",
+ "no-useless-rename",
+ // "prefer-ascii",
+ "single-var-declarator"
+ ]
+ },
+ "report": "pretty"
+ },
+ "unstable": [
+ "worker-options",
+ "cron",
+ "kv"
+ ],
+ "nodeModulesDir": "auto",
+ "imports": {
+ "@std/assert": "jsr:@std/assert@^1.0.13",
+ "@std/async": "jsr:@std/async@^1.0.13",
+ "@std/encoding": "jsr:@std/encoding@^1.0.10",
+ "@std/expect": "jsr:@std/expect@^1.0.16",
+ "@std/fs": "jsr:@std/fs@^1.0.17",
+ "@std/path": "jsr:@std/path@^1.0.9",
+ "@std/testing": "jsr:@std/testing@^1.0.12",
+ "@std/toml": "jsr:@std/toml@^1.0.7",
+ "mdast": "npm:@types/mdast"
+ }
+}