typograf: package.json task

This commit is contained in:
He4eT 2020-11-18 12:01:01 +05:00
commit 79575de3bd
2 changed files with 3 additions and 6 deletions

View file

@ -1,4 +1,4 @@
const Typograf = require('typograf');
const Typograf = require('typograf')
const fs = require('fs')
if (!process.argv[2]) {
@ -6,8 +6,6 @@ if (!process.argv[2]) {
return
}
/* */
const filePath =
`${process.cwd()}/${process.argv[2]}`
@ -25,9 +23,7 @@ const tp = new Typograf({
}
})
tp.disableRule('*')
;[
tp.disableRule('*');[
'common/punctuation/quote',
'common/nbsp/*',
'ru/nbsp/*',