diff --git a/package.json b/package.json index 7205f63..4b3dc05 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "start": "nanogen start", "build": "nanogen build", + "lint": "node typograf.js", "typography": "node typography.js" }, "keywords": [], diff --git a/typograf.js b/typograf.js index e6f64bb..5266f0f 100644 --- a/typograf.js +++ b/typograf.js @@ -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/*',