From 5410f73560b890714fe7a6b3b5845653f03d09d0 Mon Sep 17 00:00:00 2001 From: He4eT Date: Fri, 9 May 2025 11:52:19 +0200 Subject: [PATCH] typograf: shuffle rules --- tools/typograf.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tools/typograf.js b/tools/typograf.js index 94565ad..2319865 100644 --- a/tools/typograf.js +++ b/tools/typograf.js @@ -19,17 +19,20 @@ const tp = new Typograf({ locale: [locale, 'en-US'], htmlEntity: { type: 'name', - onlyInvisible: true + onlyInvisible: true, } }) -tp.disableRule('*');[ - 'common/punctuation/quote', +const enabledRules = [ 'common/nbsp/*', - 'ru/nbsp/*', - 'ru/dash/main', + 'common/punctuation/quote', 'en-US/dash/main', -].forEach(rule => + 'ru/dash/main', + 'ru/nbsp/*', +] + +tp.disableRule('*') +enabledRules.forEach(rule => tp.enableRule(rule)) void writeFile(