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, "root": true,
"extends": "wikimedia/language/es6", "extends": "wikimedia/language/es6"
"rules": {
"no-var": "off"
}
} }

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). // Load Popups when touch events are not available in the browser (e.g. not a mobile device).
var isTouchDevice = 'ontouchstart' in document.documentElement; const isTouchDevice = 'ontouchstart' in document.documentElement;
var supportNotQueries; let supportNotQueries;
try { try {
supportNotQueries = document.body.matches( 'div:not(.foo,.bar)' ); supportNotQueries = document.body.matches( 'div:not(.foo,.bar)' );
supportNotQueries = true; supportNotQueries = true;