Skip to content

Commit 226ee25

Browse files
committed
[eslint] Add browser to the environment
Test Plan: - Things like window and document shouldn't show as issues when used. Change-Id: Iec96aec6d823d74536fb92e6e44b430bca7a5f02 Reviewed-on: https://gerrit.instructure.com/94145 Tested-by: Jenkins Reviewed-by: Dan Minkevitch <dan@instructure.com> Product-Review: Clay Diffrient <cdiffrient@instructure.com> QA-Review: Clay Diffrient <cdiffrient@instructure.com>
1 parent 29418c5 commit 226ee25

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.eslintrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"env": {
33
"es6": true,
4-
"amd": true
4+
"amd": true,
5+
"browser": true
56
},
67
"extends": "airbnb",
8+
"globals": {
9+
"ENV": true
10+
},
711
"parserOptions": {
812
"ecmaVersion": 7,
913
"ecmaFeatures": {

spec/javascripts/.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"env": {
3-
"amd": true,
43
"qunit": true
54
},
65
"globals": {

0 commit comments

Comments
 (0)