Merge "eslint: Enforce no-var"

This commit is contained in:
jenkins-bot 2024-10-15 19:13:04 +00:00 committed by Gerrit Code Review
commit a5c01f6813
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;