diff options
author | stuebinm | 2021-11-20 02:30:20 +0100 |
---|---|---|
committer | stuebinm | 2021-11-20 02:30:20 +0100 |
commit | 2511c52d9452f60c533871ac111ba9473065310c (patch) | |
tree | 9b4fd6a3670841bbfc3f91cc0b2f55b4fc800605 /config.json | |
parent | 321f4d5fa118515dcde522e1ad01ddd65741828b (diff) |
make link adjustments configurable
this allows for creating custom URI "schemas" in the linter's config,
which may be either allowed, prefixed, or translated according to
some (domain-based) substitution.
Diffstat (limited to '')
-rw-r--r-- | config.json | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/config.json b/config.json index 32f566f..b955e01 100644 --- a/config.json +++ b/config.json @@ -4,7 +4,19 @@ "AllowScripts":true, "MaxLintLevel":"Fatal", "DontCopyAssets":true, - "LinkPrefix":"https://exit.rc3.world?link=", - "AllowedDomains":["example.org"], - "BlockedDomains":[] + "UriSchemas": { + "https" : { + "scope" : ["website"], + "allowed" : ["example.org"], + "blocked" : ["blocked.com"], + "prefix" : "https://ausgang.rc3.world?link=" + }, + "world" : { + "scope" : ["map"], + "substs" : { + "lounge" : "/@/lalala", + "lobby" : "/@/lounge" + } + } + } } |