From 073f905ef9fbbf62cf0d42537e5763a442453d98 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 15 Jan 2020 15:43:23 +0100 Subject: [PATCH] add lint script --- index.js | 2 +- package.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 16fe4da..703a07c 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ function main () { } const snippet = require (`./snippets/${template}/index.js`); - const folder = process.cwd(); + const folder = process.cwd (); if (!snippet.assert (folder, args)) { console.log ('snipped rejected arguments'); diff --git a/package.json b/package.json index d2dc22c..c1f2c4a 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "bin": { "snippeteer": "./index.js" }, + "scripts": { + "lint": "eslint --fix ." + }, "repository": { "type": "git", "url": "git@git.scode.ovh:timo/snippeteer"