add lint script
This commit is contained in:
parent
9e97974016
commit
073f905ef9
2
index.js
2
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');
|
||||
|
@ -6,6 +6,9 @@
|
||||
"bin": {
|
||||
"snippeteer": "./index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint --fix ."
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@git.scode.ovh:timo/snippeteer"
|
||||
|
Loading…
x
Reference in New Issue
Block a user