From 71c216d91feecec286c7f0b7fb0a492c6873bf28 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Mon, 29 Aug 2022 15:35:23 -0700 Subject: [PATCH] Fix lint errors in our npm scripts (#159501) --- build/npm/jsconfig.json | 2 +- build/npm/update-all-grammars.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/npm/jsconfig.json b/build/npm/jsconfig.json index 41d18dab432..2b8f9ad1953 100644 --- a/build/npm/jsconfig.json +++ b/build/npm/jsconfig.json @@ -4,7 +4,7 @@ "lib": [ "ES2020" ], - "module": "node12", + "module": "node16", "checkJs": true, "noEmit": true } diff --git a/build/npm/update-all-grammars.mjs b/build/npm/update-all-grammars.mjs index 2da48570661..e0d34e42beb 100644 --- a/build/npm/update-all-grammars.mjs +++ b/build/npm/update-all-grammars.mjs @@ -6,7 +6,7 @@ import { spawn as _spawn } from 'child_process'; import { readdirSync, readFileSync } from 'fs'; import { join } from 'path'; -import url from 'url' +import url from 'url'; async function spawn(cmd, args, opts) { return new Promise((c, e) => { @@ -20,7 +20,7 @@ async function main() { for (const extension of readdirSync('extensions')) { try { - let packageJSON = JSON.parse(readFileSync(join('extensions', extension, 'package.json')).toString()); + const packageJSON = JSON.parse(readFileSync(join('extensions', extension, 'package.json')).toString()); if (!(packageJSON && packageJSON.scripts && packageJSON.scripts['update-grammar'])) { continue; }