deno-json-lint
概要
使い方
code:shell
$ deno run --allow-read=deno.json jsr:@uki00a/deno-json-lint
出力例
code:shell
testdata/deno.e2e.json:4:23: ban-allow-all --allow-all/-A should not be used testdata/deno.e2e.json:5:27: require-allow-list An allow list should be specified for --allow-read testdata/deno.e2e.json:8:32: ban-allow-all all: true should not be used ルール
require-allow-list - allow listなしで使用されている--allow-*の使用を検出します
require-lockfile - deno.lockが無効化されている場合にエラーを報告します 設定
code:deno.json
{
"deno-json-lint": {
"rules": {
"require-allow-list": "off",
"require-minimum-dependency-age": "warn"
}
}
}