From 251fd4fec274d7ed1456255ac2685a44dc20c508 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Tue, 14 Jan 2020 13:49:28 +0100 Subject: .eslintrc.json: Reduce global variable scope to certain source dirs --- .eslintrc.json | 10 +++------- res/controllers/.eslintrc.json | 10 ++++++++++ script/.eslintrc.json | 7 +++++++ 3 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 res/controllers/.eslintrc.json create mode 100644 script/.eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json index f1eb2025e8..c9d80f9738 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -17,12 +17,8 @@ "no-async-promise-executor": "off" }, "globals": { - "_": "readonly", - "color": "readonly", - "components": "readonly", - "engine": "readonly", - "midi": "readonly", - "print": "readonly", - "script": "readonly" + "console": "writable", + "svg": "writable", + "print": "readonly" } } diff --git a/res/controllers/.eslintrc.json b/res/controllers/.eslintrc.json new file mode 100644 index 0000000000..a5f60376e3 --- /dev/null +++ b/res/controllers/.eslintrc.json @@ -0,0 +1,10 @@ +{ + "globals": { + "_": "readonly", + "color": "readonly", + "components": "readonly", + "engine": "readonly", + "midi": "readonly", + "script": "readonly" + } +} diff --git a/script/.eslintrc.json b/script/.eslintrc.json new file mode 100644 index 0000000000..16bdb96c04 --- /dev/null +++ b/script/.eslintrc.json @@ -0,0 +1,7 @@ +{ + "globals": { + "__extension__": "readonly", + "__setupPackage__": "readonly", + "__postInit__": "readonly" + } +} -- cgit v1.2.3