Skip to content

Commit 71c216d

Browse files
authored
Fix lint errors in our npm scripts (microsoft#159501)
1 parent 0d690b3 commit 71c216d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build/npm/jsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"lib": [
55
"ES2020"
66
],
7-
"module": "node12",
7+
"module": "node16",
88
"checkJs": true,
99
"noEmit": true
1010
}

build/npm/update-all-grammars.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { spawn as _spawn } from 'child_process';
77
import { readdirSync, readFileSync } from 'fs';
88
import { join } from 'path';
9-
import url from 'url'
9+
import url from 'url';
1010

1111
async function spawn(cmd, args, opts) {
1212
return new Promise((c, e) => {
@@ -20,7 +20,7 @@ async function main() {
2020

2121
for (const extension of readdirSync('extensions')) {
2222
try {
23-
let packageJSON = JSON.parse(readFileSync(join('extensions', extension, 'package.json')).toString());
23+
const packageJSON = JSON.parse(readFileSync(join('extensions', extension, 'package.json')).toString());
2424
if (!(packageJSON && packageJSON.scripts && packageJSON.scripts['update-grammar'])) {
2525
continue;
2626
}

0 commit comments

Comments
 (0)