summaryrefslogtreecommitdiffstats
path: root/tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js')
-rw-r--r--tools/lint/eslint/eslint-plugin-mozilla/lib/helpers.js8
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: " +