add lint script

This commit is contained in:
Timo Hocker 2020-01-15 15:43:23 +01:00
parent 9e97974016
commit 073f905ef9
2 changed files with 4 additions and 1 deletions

View File

@ -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');

View File

@ -6,6 +6,9 @@
"bin": {
"snippeteer": "./index.js"
},
"scripts": {
"lint": "eslint --fix ."
},
"repository": {
"type": "git",
"url": "git@git.scode.ovh:timo/snippeteer"