diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-upstream/125.0.1.tar.xz firefox-upstream/125.0.1.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js')
-rw-r--r-- | tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js b/tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js index dc4106631a..9ab51df37e 100644 --- a/tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js +++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js @@ -191,13 +191,13 @@ module.exports = { let parents = []; estraverse.traverse(ast, { - enter(node, parent) { + enter(node) { listener(node.type, node, parents); parents.push(node); }, - leave(node, parent) { + leave() { if (!parents.length) { throw new Error("Left more nodes than entered."); } @@ -285,7 +285,7 @@ module.exports = { * @return {Object} * Espree compatible permissive config. */ - getPermissiveConfig({ useBabel = true } = {}) { + getPermissiveConfig() { return { range: true, loc: true, @@ -511,7 +511,7 @@ module.exports = { manifest, }); } catch (e) { - console.log( + console.error( "TOML ERROR: " + e.message + " @line: " + |