From 4266a1e29e2568c81e5cc25ebdaa1244fcee28a4 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Thu, 9 Apr 2020 09:11:47 +0200 Subject: [PATCH] adapt node template to new rules --- snippets/node/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snippets/node/index.js b/snippets/node/index.js index fd9d26c..98e3080 100644 --- a/snippets/node/index.js +++ b/snippets/node/index.js @@ -56,7 +56,10 @@ async function run (folder, args) { await fs.readFile (path.join (snip_folder, 'package.json'), 'utf-8') ); - package_json.scripts = { lint: 'eslint .', test: 'nyc ava' }; + package_json.scripts = { + lint: 'eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs', + test: 'nyc ava' + }; await fs.writeFile ( path.join (snip_folder, 'package.json'),