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 snippet = require (`./snippets/${template}/index.js`);
|
||||||
const folder = process.cwd();
|
const folder = process.cwd ();
|
||||||
|
|
||||||
if (!snippet.assert (folder, args)) {
|
if (!snippet.assert (folder, args)) {
|
||||||
console.log ('snipped rejected arguments');
|
console.log ('snipped rejected arguments');
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
"bin": {
|
"bin": {
|
||||||
"snippeteer": "./index.js"
|
"snippeteer": "./index.js"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"lint": "eslint --fix ."
|
||||||
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git@git.scode.ovh:timo/snippeteer"
|
"url": "git@git.scode.ovh:timo/snippeteer"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user