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

@ -6,6 +6,7 @@
"scripts": { "scripts": {
"start": "nanogen start", "start": "nanogen start",
"build": "nanogen build", "build": "nanogen build",
"lint": "node typograf.js",
"typography": "node typography.js" "typography": "node typography.js"
}, },
"keywords": [], "keywords": [],

View file

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