From c2c115ebd8e29122ea0a1aaf041871189917e196 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Mon, 8 Jan 2024 07:20:02 +0900 Subject: fix(ext): enable prefer-primordials for internal TypeScript (#21813) Enabled prefer-primordials lint for ext/cron and ext/kv. --- tools/lint.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tools') diff --git a/tools/lint.js b/tools/lint.js index 735da872e..ed2a04eee 100755 --- a/tools/lint.js +++ b/tools/lint.js @@ -96,13 +96,11 @@ async function dlintPreferPrimordials() { const execPath = await getPrebuilt("dlint"); const sourceFiles = await getSources(ROOT_PATH, [ "runtime/**/*.js", + "runtime/**/*.ts", "ext/**/*.js", + "ext/**/*.ts", + ":!:ext/**/*.d.ts", "ext/node/polyfills/*.mjs", - "ext/node/polyfills/*.ts", - ":!:ext/node/polyfills/*.d.ts", - "core/*.js", - ":!:core/*_test.js", - ":!:core/examples/**", ]); if (!sourceFiles.length) { -- cgit v1.2.3