Hygiene: improve ESLint globals readability

- Drop unused Hogan global.

- Instead of using a confusing and deprecated boolean, specify that
  globals are "readable" / "writable"
  https://eslint.org/docs/user-guide/configuring#specifying-globals

Change-Id: Icbb663d2d9cda5e67e81c38d85b8a75cabb5e52b
This commit is contained in:
Stephen Niedzielski 2019-02-21 07:54:04 -07:00
parent d3a95084c5
commit 73bfc21977
1 changed files with 3 additions and 4 deletions

View File

@ -5,10 +5,9 @@
"wikimedia/jquery"
],
"globals": {
"OO": false,
"mw": false,
"Hogan": false,
"require": false
"OO": "readonly",
"mw": "readonly",
"require": "readonly"
},
"rules": {
"no-restricted-properties": [ "error",