Merge pull request #2350 from keepassxreboot/fix/eslint_globals

Use non-deprecated globals with ESLint
This commit is contained in:
Sami Vänttinen 2024-09-29 11:40:48 +03:00 committed by GitHub
commit 8b31246e11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

200
.eslintrc
View file

@ -80,106 +80,106 @@
"vars-on-top": "off"
},
"globals": {
"_called": true,
"acceptedOTPFields": true,
"assertInputFields": true,
"assertPasswordChangeFields": true,
"assertRegex": true,
"assertSearchField": true,
"assertSearchForm": true,
"assertTOTPField": true,
"AssociatedAction": true,
"AuthenticatorAssertionResponse": true,
"AuthenticatorAttestationResponse": true,
"Autocomplete": true,
"BLUE_BUTTON": true,
"bootstrap": true,
"browser": true,
"browserAction": true,
"CHECK_UPDATE_NEVER": true,
"CHECK_UPDATE_ONE_MONTH": true,
"CHECK_UPDATE_ONE_WEEK": true,
"CHECK_UPDATE_THREE_DAYS": true,
"cloneInto": true,
"createResult": true,
"createStylesheet": true,
"DatabaseState": true,
"debugLogMessage": true,
"EXTENSION_NAME": true,
"getCurrentTab": true,
"getLoginData": true,
"getTopLevelDomainFromUrl": true,
"GRAY_BUTTON_CLASS": true,
"GREEN_BUTTON": true,
"httpAuth": true,
"Icon": true,
"IGNORE_AUTOSUBMIT": true,
"IGNORE_FULL": true,
"IGNORE_NORMAL": true,
"IGNORE_NOTHING": true,
"importScripts": true,
"IMPROVED_DETECTION_PREDEFINED_SITELIST": true,
"initColorTheme": true,
"isEdge": true,
"isFirefox": true,
"keepass": true,
"keepassClient": true,
"kpActions": true,
"kpErrors": true,
"kpxc": true,
"kpxcAssert": true,
"kpxcBanner": true,
"kpxcCustomLoginFieldsBanner": true,
"kpxcEvent": true,
"kpxcFields": true,
"kpxcFill": true,
"kpxcForm": true,
"kpxcIcons": true,
"kpxcObserverHelper": true,
"kpxcPasswordGenerator": true,
"kpxcPasswordIcons": true,
"kpxcSites": true,
"kpxcTOTPAutocomplete": true,
"kpxcTOTPIcons": true,
"kpxcUI": true,
"kpxcUserAutocomplete": true,
"kpxcUsernameIcons": true,
"logDebug": true,
"logError": true,
"kpxcPasskeysUtils": true,
"ManualFill": true,
"matchesWithNodeName": true,
"MAX_AUTOCOMPLETE_NAME_LEN": true,
"MAX_OPACITY": true,
"MAX_TOTP_INPUT_LENGTH": true,
"menuContexts": true,
"MIN_INPUT_FIELD_OFFSET_WIDTH": true,
"MIN_INPUT_FIELD_WIDTH_PX": true,
"MIN_OPACITY": true,
"MIN_TOTP_INPUT_LENGTH": true,
"module": true,
"nacl": true,
"ORANGE_BUTTON": true,
"page": true,
"Pixels": true,
"PublicKeyCredential": true,
"PREDEFINED_SITELIST": true,
"RED_BUTTON": true,
"retrieveColorScheme": true,
"sendMessage": true,
"showNotification": true,
"siteMatch": true,
"slashNeededForUrl": true,
"SORT_BY_GROUP_AND_TITLE": true,
"SORT_BY_GROUP_AND_USERNAME": true,
"SORT_BY_MATCHING_CREDENTIALS_SETTING": true,
"SORT_BY_RELEVANT_ENTRY": true,
"SORT_BY_TITLE": true,
"SORT_BY_USERNAME": true,
"statusResponse": true,
"Tests": true,
"tr": true,
"trimURL": true
"_called": "readonly",
"acceptedOTPFields": "readonly",
"assertInputFields": "readonly",
"assertPasswordChangeFields": "readonly",
"assertRegex": "readonly",
"assertSearchField": "readonly",
"assertSearchForm": "readonly",
"assertTOTPField": "readonly",
"AssociatedAction": "readonly",
"AuthenticatorAssertionResponse": "readonly",
"AuthenticatorAttestationResponse": "readonly",
"Autocomplete": "readonly",
"BLUE_BUTTON": "readonly",
"bootstrap": "readonly",
"browser": "readonly",
"browserAction": "readonly",
"CHECK_UPDATE_NEVER": "readonly",
"CHECK_UPDATE_ONE_MONTH": "readonly",
"CHECK_UPDATE_ONE_WEEK": "readonly",
"CHECK_UPDATE_THREE_DAYS": "readonly",
"cloneInto": "readonly",
"createResult": "readonly",
"createStylesheet": "readonly",
"DatabaseState": "readonly",
"debugLogMessage": "readonly",
"EXTENSION_NAME": "readonly",
"getCurrentTab": "readonly",
"getLoginData": "readonly",
"getTopLevelDomainFromUrl": "readonly",
"GRAY_BUTTON_CLASS": "readonly",
"GREEN_BUTTON": "readonly",
"httpAuth": "readonly",
"Icon": "readonly",
"IGNORE_AUTOSUBMIT": "readonly",
"IGNORE_FULL": "readonly",
"IGNORE_NORMAL": "readonly",
"IGNORE_NOTHING": "readonly",
"importScripts": "readonly",
"IMPROVED_DETECTION_PREDEFINED_SITELIST": "readonly",
"initColorTheme": "readonly",
"isEdge": "readonly",
"isFirefox": "readonly",
"keepass": "readonly",
"keepassClient": "readonly",
"kpActions": "readonly",
"kpErrors": "readonly",
"kpxc": "readonly",
"kpxcAssert": "readonly",
"kpxcBanner": "readonly",
"kpxcCustomLoginFieldsBanner": "readonly",
"kpxcEvent": "readonly",
"kpxcFields": "readonly",
"kpxcFill": "readonly",
"kpxcForm": "readonly",
"kpxcIcons": "readonly",
"kpxcObserverHelper": "readonly",
"kpxcPasswordGenerator": "readonly",
"kpxcPasswordIcons": "readonly",
"kpxcSites": "readonly",
"kpxcTOTPAutocomplete": "readonly",
"kpxcTOTPIcons": "readonly",
"kpxcUI": "readonly",
"kpxcUserAutocomplete": "readonly",
"kpxcUsernameIcons": "readonly",
"logDebug": "readonly",
"logError": "readonly",
"kpxcPasskeysUtils": "readonly",
"ManualFill": "readonly",
"matchesWithNodeName": "readonly",
"MAX_AUTOCOMPLETE_NAME_LEN": "readonly",
"MAX_OPACITY": "readonly",
"MAX_TOTP_INPUT_LENGTH": "readonly",
"menuContexts": "readonly",
"MIN_INPUT_FIELD_OFFSET_WIDTH": "readonly",
"MIN_INPUT_FIELD_WIDTH_PX": "readonly",
"MIN_OPACITY": "readonly",
"MIN_TOTP_INPUT_LENGTH": "readonly",
"module": "readonly",
"nacl": "readonly",
"ORANGE_BUTTON": "readonly",
"page": "readonly",
"Pixels": "readonly",
"PublicKeyCredential": "readonly",
"PREDEFINED_SITELIST": "readonly",
"RED_BUTTON": "readonly",
"retrieveColorScheme": "readonly",
"sendMessage": "readonly",
"showNotification": "readonly",
"siteMatch": "readonly",
"slashNeededForUrl": "readonly",
"SORT_BY_GROUP_AND_TITLE": "readonly",
"SORT_BY_GROUP_AND_USERNAME": "readonly",
"SORT_BY_MATCHING_CREDENTIALS_SETTING": "readonly",
"SORT_BY_RELEVANT_ENTRY": "readonly",
"SORT_BY_TITLE": "readonly",
"SORT_BY_USERNAME": "readonly",
"statusResponse": "readonly",
"Tests": "readonly",
"tr": "readonly",
"trimURL": "readonly"
},
"overrides": [
{