From 173ea2bc795cf725cdbe5e9865787a1109754304 Mon Sep 17 00:00:00 2001 From: Christopher Allen Date: Mon, 12 Jul 2021 02:54:59 +0100 Subject: [PATCH] Have eslint ignore undefined variable "exports" Modules defined using goog.module declare their exported functions by assigning them to properties on an object which is the value of the variable "exports" (e.g., "exports.MyClass = class { ... };"). Normally eslint would complain about this variable being undefined, but this commit suppresses these errors. --- .eslintrc.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 47430bdf2..0d5daf79c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -79,7 +79,8 @@ }, "globals": { "Blockly": true, - "goog": true + "goog": true, + "exports": true }, "extends": [ "eslint:recommended"