diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-20 15:14:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 15:14:37 -0400 |
commit | a7c002ae634b20a2f84c90417327a88c9ac2df99 (patch) | |
tree | c21a179412ee70f59eb0c38acfbe5d4998870224 /tools/lint.js | |
parent | 2f47b4d1fd8e37a5e45bc1b8f3623708e0f95e2e (diff) |
chore: enable no-console dlint rule (#25113)
Diffstat (limited to 'tools/lint.js')
-rwxr-xr-x | tools/lint.js | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/tools/lint.js b/tools/lint.js index aa02a3e2b..8c2e0f594 100755 --- a/tools/lint.js +++ b/tools/lint.js @@ -1,5 +1,8 @@ #!/usr/bin/env -S deno run --allow-write --allow-read --allow-run --allow-net --config=tests/config/deno.json // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +// deno-lint-ignore-file no-console + import { buildMode, getPrebuilt, getSources, join, ROOT_PATH } from "./util.js"; import { checkCopyright } from "./copyright_checker.js"; import * as ciFile from "../.github/workflows/ci.generate.ts"; @@ -44,27 +47,19 @@ async function dlint() { "*.js", "*.ts", ":!:.github/mtime_cache/action.js", - ":!:tests/testdata/swc_syntax_error.ts", - ":!:tests/testdata/error_008_checkjs.js", ":!:cli/bench/testdata/npm/*", ":!:cli/bench/testdata/express-router.js", ":!:cli/bench/testdata/react-dom.js", ":!:cli/compilers/wasm_wrap.js", ":!:cli/tsc/dts/**", + ":!:cli/tsc/*typescript.js", + ":!:cli/tsc/compiler.d.ts", + ":!:runtime/examples/", ":!:target/", ":!:tests/registry/**", ":!:tests/specs/**", - ":!:tests/testdata/encoding/**", - ":!:tests/testdata/error_syntax.js", - ":!:tests/testdata/file_extensions/ts_with_js_extension.js", - ":!:tests/testdata/fmt/**", - ":!:tests/testdata/lint/**", - ":!:tests/testdata/npm/**", - ":!:tests/testdata/run/**", - ":!:tests/testdata/tsc/**", - ":!:tests/testdata/test/glob/**", - ":!:cli/tsc/*typescript.js", - ":!:cli/tsc/compiler.d.ts", + ":!:tests/testdata/**", + ":!:tests/unit_node/testdata/**", ":!:tests/wpt/suite/**", ":!:tests/wpt/runner/**", ]); @@ -93,7 +88,7 @@ async function dlint() { }), ); } - await Promise.all(pending); + await Promise.allSettled(pending); } // `prefer-primordials` has to apply only to files related to bootstrapping, |