From 79575de3bdf734be5ffa66ca7de316d9933c9211 Mon Sep 17 00:00:00 2001 From: He4eT Date: Wed, 18 Nov 2020 12:01:01 +0500 Subject: [PATCH] typograf: package.json task --- package.json | 1 + typograf.js | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) 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/*',