From 205cacf564c2eb668730718c0951c90a7f26d08b Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Tue, 28 Jan 2025 08:30:08 +0100 Subject: [PATCH] Add script to lint with Deno --- deno.json | 5 +++++ script/lint | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100755 script/lint diff --git a/deno.json b/deno.json index 161943b..9ce5b11 100644 --- a/deno.json +++ b/deno.json @@ -5,5 +5,10 @@ }, "fmt": { "exclude": ["pnpm-lock.yaml", "**/*.md"] + }, + "lint": { + "rules": { + "tags": ["recommended"] + } } } diff --git a/script/lint b/script/lint new file mode 100755 index 0000000..e886474 --- /dev/null +++ b/script/lint @@ -0,0 +1,7 @@ +#!/bin/sh + +set -eu + +ROOT="$(dirname "$(dirname "$0")")" + +deno lint "$@" "$ROOT"