mirror of
https://github.com/He4eT/oddsquat.git
synced 2026-05-04 20:37:22 +00:00
typograf: shuffle rules
This commit is contained in:
parent
6d1d86e99a
commit
5410f73560
1 changed files with 9 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue