eslint: Enforce no-var

Change-Id: I9853fde20dcd316d43f28b906bc501ca6329d138
This commit is contained in:
Ed Sanders 2024-09-26 13:55:46 +01:00
parent d6b589f50b
commit 0fd18bb233
2 changed files with 4 additions and 7 deletions

View file

@ -1,7 +1,4 @@
{
"root": true,
"extends": "wikimedia/language/es6",
"rules": {
"no-var": "off"
}
"extends": "wikimedia/language/es6"
}

View file

@ -1,7 +1,7 @@
var types = require( './types.json' );
const types = require( './types.json' );
// Load Popups when touch events are not available in the browser (e.g. not a mobile device).
var isTouchDevice = 'ontouchstart' in document.documentElement;
var supportNotQueries;
const isTouchDevice = 'ontouchstart' in document.documentElement;
let supportNotQueries;
try {
supportNotQueries = document.body.matches( 'div:not(.foo,.bar)' );
supportNotQueries = true;