The new regex from after the switch from JSHint to ESLint wasn't catching
the ESLint pragma correctly.
Also, the spacing of the pragma comment was updated to match other comments.
// Avoid breaking semicolons inserted by r.js
skipSemiColonInsertion: true,
wrap: {
- start: wrapper[ 0 ].replace( /\/\*eslint .* \*\/\n/, "" ),
+ start: wrapper[ 0 ].replace( /\/\*\s*eslint(?: |-).*\s*\*\/\n/, "" ),
end: globals.replace(
/\/\*\s*ExcludeStart\s*\*\/[\w\W]*?\/\*\s*ExcludeEnd\s*\*\//ig,
""
-/*eslint-disable no-unused-vars*/
+/* eslint-disable no-unused-vars*/
/*!
* jQuery JavaScript Library v@VERSION
* https://jquery.com/