From e4a39685cb8e77483ada4072ee1f6861f310c286 Mon Sep 17 00:00:00 2001 From: Thanesh Rajandran Date: Fri, 5 Jun 2020 15:16:46 -0400 Subject: [PATCH] Add webextension environment to eslint This stops eslint from complaining when you use, for example `chrome.runtime.sendMessage` --- .eslintrc.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8c74e46..0a74928 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,5 +8,8 @@ "no-extend-native": "off", "react/jsx-props-no-spreading": "off", "jsx-a11y/label-has-associated-control": "off" + }, + "env": { + "webextensions": true } -} \ No newline at end of file +}