-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/65543 upgrade eslint to v9 (#2975)
* add all attempts as text files, with my scratch build as the active one * basic eslint config. 5k~ issues * remove output file * separate rulesets and concerns * remove header imports for jest * update globals and exclude minified sources * remove standard. progress with eslint 9 fixes * fix more errors * add notes * final lint errors fixed * add stylistic. fix issues * finish off stylistic fixes on codebase * narrow global usage * narrow scope on globals. tighten up browser js rules * remove superfluous rules * introduce jest plugin. build out existing ts rules from old config file * code updates based on eslint/ts rules * target proper integration test call * remove all tsignore where no longer relevant * remove test block that has been disabled for 3+ years * tslib: upgradeESLint to v9 and convert existing config, with fixes * narrow restrictions on lint rules * revert to strict * update build-agent to 3.248.0 * Pr comment fixes * disable import rule for app insights * remove redis param docs * put back unused next var as removal causes rendering failure of error page * update chrome and selenium version --------- Co-authored-by: Mohsen Qureshi <[email protected]>
- Loading branch information
1 parent
dd87e82
commit ead6f1d
Showing
316 changed files
with
3,185 additions
and
4,014 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
// See https://babeljs.io/docs/en/babel-preset-env#targets | ||
presets: [ | ||
['@babel/preset-env', {targets: {node: 'current'}}], | ||
['@babel/preset-env', { targets: { node: 'current' } }], | ||
'@babel/preset-typescript' | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,3 +69,4 @@ dependency-graphs | |
|
||
# typescript output directory | ||
dist | ||
tsconfig.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
/* global googleTrackingId dataLayer args */ | ||
document.addEventListener('DOMContentLoaded', function () { | ||
// Disable tracking if the opt-out cookie exists. | ||
// To disable analytics: window['ga-disable-UA-XXXXX-Y'] = true; | ||
// More info on https://developers.google.com/analytics/devguides/collection/analyticsjs/user-opt-out | ||
// eslint-disable-next-line no-undef | ||
const disableStr = 'ga-disable-' + googleTrackingId | ||
const consentCookie = window.GOVUK.getConsentCookie() | ||
window[disableStr] = consentCookie && !consentCookie.usage | ||
|
||
window.dataLayer = window.dataLayer || [] | ||
// eslint-disable-next-line no-undef | ||
function gtag () { dataLayer.push(arguments) } | ||
|
||
function gtag () { dataLayer.push(...args) } | ||
gtag('js', new Date()) | ||
// eslint-disable-next-line no-undef | ||
gtag('config', googleTrackingId, { anonymize_ip: true }) | ||
}) |
Oops, something went wrong.