diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-13 14:15:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 14:15:38 +0200 |
commit | b216d48e5f179260fea247d4a1b9fce76f240e7d (patch) | |
tree | 66fb54d1e573f84d4dec92af8c465e60a998902e /std/node | |
parent | bf70442b08eb54b2959b32977aa0a245c530248b (diff) |
upgrade: deno_doc, deno_lint, dprint, swc (#7434)
upgrades:
- swc_ecmascript 0.7.7
- dprint-plugin-typescript 0.31.3
- deno_lint 0.2.0
- deno_doc 0.1.9
Split std_lint test into std_lint and unit_test_lint.
Added lint ignores to CommonJS files in std/node.
Diffstat (limited to 'std/node')
-rw-r--r-- | std/node/_fs/_fs_common.ts | 3 | ||||
-rw-r--r-- | std/node/process_test.ts | 2 | ||||
-rw-r--r-- | std/node/tests/cjs/cjs_a.js | 1 | ||||
-rw-r--r-- | std/node/tests/cjs/cjs_b.js | 1 | ||||
-rw-r--r-- | std/node/tests/cjs/cjs_builtin.js | 1 | ||||
-rw-r--r-- | std/node/tests/cjs/cjs_cycle_a.js | 1 | ||||
-rw-r--r-- | std/node/tests/cjs/cjs_cycle_b.js | 1 | ||||
-rw-r--r-- | std/node/tests/cjs/cjs_throw.js | 1 | ||||
-rw-r--r-- | std/node/tests/cjs/index.js | 1 | ||||
-rw-r--r-- | std/node/tests/cjs/subdir/cjs_c.js | 1 |
10 files changed, 13 insertions, 0 deletions
diff --git a/std/node/_fs/_fs_common.ts b/std/node/_fs/_fs_common.ts index 5d3f02a5d..ec0c2caef 100644 --- a/std/node/_fs/_fs_common.ts +++ b/std/node/_fs/_fs_common.ts @@ -150,14 +150,17 @@ export function getOpenOptions(flag: string | undefined): Deno.OpenOptions { case "as": { // 'as': Open file for appending in synchronous mode. The file is created if it does not exist. openOptions = { create: true, append: true }; + break; } case "as+": { // 'as+': Open file for reading and appending in synchronous mode. The file is created if it does not exist. openOptions = { create: true, read: true, append: true }; + break; } case "rs+": { // 'rs+': Open file for reading and writing in synchronous mode. Instructs the operating system to bypass the local file system cache. openOptions = { create: true, read: true, write: true }; + break; } default: { throw new Error(`Unrecognized file system flag: ${flag}`); diff --git a/std/node/process_test.ts b/std/node/process_test.ts index 489a112f3..d83a9dca7 100644 --- a/std/node/process_test.ts +++ b/std/node/process_test.ts @@ -1,3 +1,5 @@ +// deno-lint-ignore-file no-undef + import { assert, assertThrows, assertEquals } from "../testing/asserts.ts"; import * as path from "../path/mod.ts"; import * as all from "./process.ts"; diff --git a/std/node/tests/cjs/cjs_a.js b/std/node/tests/cjs/cjs_a.js index b8f69c857..6295f3a14 100644 --- a/std/node/tests/cjs/cjs_a.js +++ b/std/node/tests/cjs/cjs_a.js @@ -1,3 +1,4 @@ +// deno-lint-ignore-file no-undef /* eslint-disable */ const { helloB } = require("./cjs_b.js"); const C = require("./subdir/cjs_c"); diff --git a/std/node/tests/cjs/cjs_b.js b/std/node/tests/cjs/cjs_b.js index 17499012c..2bbf75809 100644 --- a/std/node/tests/cjs/cjs_b.js +++ b/std/node/tests/cjs/cjs_b.js @@ -2,4 +2,5 @@ function helloB() { return "B"; } +// deno-lint-ignore no-undef module.exports = { helloB }; diff --git a/std/node/tests/cjs/cjs_builtin.js b/std/node/tests/cjs/cjs_builtin.js index d821d2558..3eae5dc59 100644 --- a/std/node/tests/cjs/cjs_builtin.js +++ b/std/node/tests/cjs/cjs_builtin.js @@ -1,3 +1,4 @@ +// deno-lint-ignore-file no-undef /* eslint-disable */ const fs = require("fs"); const util = require("util"); diff --git a/std/node/tests/cjs/cjs_cycle_a.js b/std/node/tests/cjs/cjs_cycle_a.js index 7a4e5a5f6..d73da20b9 100644 --- a/std/node/tests/cjs/cjs_cycle_a.js +++ b/std/node/tests/cjs/cjs_cycle_a.js @@ -1,3 +1,4 @@ +// deno-lint-ignore-file no-undef module.exports = false; require("./cjs_cycle_a"); module.exports = true; diff --git a/std/node/tests/cjs/cjs_cycle_b.js b/std/node/tests/cjs/cjs_cycle_b.js index d85a1fc84..bd18094ce 100644 --- a/std/node/tests/cjs/cjs_cycle_b.js +++ b/std/node/tests/cjs/cjs_cycle_b.js @@ -1,3 +1,4 @@ +// deno-lint-ignore-file no-undef module.exports = false; require("./cjs_cycle_b"); module.exports = true; diff --git a/std/node/tests/cjs/cjs_throw.js b/std/node/tests/cjs/cjs_throw.js index a636f406b..3def8cc85 100644 --- a/std/node/tests/cjs/cjs_throw.js +++ b/std/node/tests/cjs/cjs_throw.js @@ -2,4 +2,5 @@ function hello() { throw new Error("bye"); } +// deno-lint-ignore no-undef module.exports = { hello }; diff --git a/std/node/tests/cjs/index.js b/std/node/tests/cjs/index.js index 5dea52db2..d55928a89 100644 --- a/std/node/tests/cjs/index.js +++ b/std/node/tests/cjs/index.js @@ -1 +1,2 @@ +// deno-lint-ignore no-undef module.exports = { isIndex: true }; diff --git a/std/node/tests/cjs/subdir/cjs_c.js b/std/node/tests/cjs/subdir/cjs_c.js index 4e7d7ebe5..b24caa0c4 100644 --- a/std/node/tests/cjs/subdir/cjs_c.js +++ b/std/node/tests/cjs/subdir/cjs_c.js @@ -1 +1,2 @@ +// deno-lint-ignore no-undef module.exports = "C"; |