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'],
|
locale: [locale, 'en-US'],
|
||||||
htmlEntity: {
|
htmlEntity: {
|
||||||
type: 'name',
|
type: 'name',
|
||||||
onlyInvisible: true
|
onlyInvisible: true,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
tp.disableRule('*');[
|
const enabledRules = [
|
||||||
'common/punctuation/quote',
|
|
||||||
'common/nbsp/*',
|
'common/nbsp/*',
|
||||||
'ru/nbsp/*',
|
'common/punctuation/quote',
|
||||||
'ru/dash/main',
|
|
||||||
'en-US/dash/main',
|
'en-US/dash/main',
|
||||||
].forEach(rule =>
|
'ru/dash/main',
|
||||||
|
'ru/nbsp/*',
|
||||||
|
]
|
||||||
|
|
||||||
|
tp.disableRule('*')
|
||||||
|
enabledRules.forEach(rule =>
|
||||||
tp.enableRule(rule))
|
tp.enableRule(rule))
|
||||||
|
|
||||||
void writeFile(
|
void writeFile(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue