Update globals in .eslintrc files

1. Add Map as a global
2. Use readonly/writable over false/true

Change 2 was done to use non-deprecated values (last paragraph of the section):
https://eslint.org/docs/user-guide/configuring/language-options#using-configuration-files-1
This commit is contained in:
Hernán Cervera 2021-07-02 07:33:55 -05:00
parent c639dd15e3
commit 94f269d6d0
2 changed files with 8 additions and 6 deletions

View File

@ -278,8 +278,9 @@
]
},
"globals": {
"OpenSeadragon": true,
"define": false,
"module": false
"OpenSeadragon": "writable",
"define": "readonly",
"module": "readonly",
"Map": "readonly"
}
}

View File

@ -17,9 +17,10 @@
}
},
"globals": {
"OpenSeadragon": true,
"define": false,
"module": false
"OpenSeadragon": "writable",
"define": "readonly",
"module": "readonly",
"Map": "readonly"
},
"rules": {
"no-unused-vars": [