adapt node template to new rules

This commit is contained in:
Timo Hocker 2020-04-09 09:11:47 +02:00
parent 28872f5f5d
commit 4266a1e29e

View File

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