mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-08 13:48:11 +02:00
Replace prettier with stylistic, improve types, and add no-undef rule
This commit is contained in:
parent
5be79f4ab8
commit
7679a34375
59 changed files with 886 additions and 614 deletions
|
|
@ -8,8 +8,8 @@ export default function DhTemplateEnricher(match, _options) {
|
|||
const range =
|
||||
params.range && Number.isNaN(Number(params.range))
|
||||
? Object.values(CONFIG.DH.GENERAL.templateRanges).find(
|
||||
x => x.id.toLowerCase() === params.range || x.short === params.range
|
||||
)?.id
|
||||
x => x.id.toLowerCase() === params.range || x.short === params.range
|
||||
)?.id
|
||||
: params.range;
|
||||
|
||||
if (!CONFIG.DH.GENERAL.templateTypes[type] || !range) return match[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue