You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2021/04/04 04:47:27 UTC

[incubator-annotator] 13/14: Add globalThis to the JavaScript ESLint setup

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit bb5534a22cf152f5d8c45de42b05b8e0be678d0c
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sat Apr 3 21:45:26 2021 -0700

    Add globalThis to the JavaScript ESLint setup
---
 .eslintrc.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.eslintrc.js b/.eslintrc.js
index 0acd180..d40dd77 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -85,6 +85,9 @@ module.exports = {
         es2017: true,
         node: true,
       },
+      globals: {
+        globalThis: 'readonly',
+      },
       parserOptions: {
         ecmaVersion: 2019,
       },