adapt node template to new rules
This commit is contained in:
parent
28872f5f5d
commit
4266a1e29e
@ -56,7 +56,10 @@ async function run (folder, args) {
|
|||||||
await fs.readFile (path.join (snip_folder, 'package.json'), 'utf-8')
|
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 (
|
await fs.writeFile (
|
||||||
path.join (snip_folder, 'package.json'),
|
path.join (snip_folder, 'package.json'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user