diff --git a/src/App.vue b/src/App.vue index c5f99eee..994b390c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -44,7 +44,7 @@ export default { watch: { shouldShowLoader(newVal) { // prevent keyboard input when loader is shown, re-enable when hidden - if(newVal) { + if (newVal) { document.onkeydown = () => false; } else { diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 45bceb0a..fc76acc5 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -118,7 +118,6 @@ const endpoints = Object.freeze({ zipCode, applicationName, referralSequenceNumber - // eslint-disable-next-line max-len ) => `${PARTS_BASE_URL}/recal-parts/${carId}/${partNumber}/${recalibrationType}/${parentAccountNumber}/${zipCode}/${applicationName}/${referralSequenceNumber}`, method: 'GET' }, diff --git a/src/constants/error-messages.js b/src/constants/error-messages.js index 224c6e30..c4562926 100644 --- a/src/constants/error-messages.js +++ b/src/constants/error-messages.js @@ -31,9 +31,7 @@ const errorMessages = Object.freeze({ INVALID_ZIP: 'The ZIP you entered was invalid. Please enter a valid ZIP.', ZIP_CODE_NOT_SERVICED_FOR_VEHICLE: 'We do not currently offer glass service for your vehicle in this ZIP code. Please try another ZIP code.', VIN_REQUIRED: 'Please enter your VIN', - VIN_FORMAT: - // eslint-disable-next-line max-len - 'Invalid VIN. Please make sure that you entered the correct 17-digit, alpha-numeric number. VINs do not contain the letters I, O, or Q', + VIN_FORMAT: 'Invalid VIN. Please make sure that you entered the correct 17-digit, alpha-numeric number. VINs do not contain the letters I, O, or Q', OPTION_REQUIRED: 'Please select an option', VEHICLE_REQUIRED: 'Please select a vehicle', POLICY_NUMBER_REQUIRED: 'Policy number is required.', diff --git a/src/digital-components/base-input-button/base-input-button.vue b/src/digital-components/base-input-button/base-input-button.vue index f619a16e..0c1d3a2c 100644 --- a/src/digital-components/base-input-button/base-input-button.vue +++ b/src/digital-components/base-input-button/base-input-button.vue @@ -119,7 +119,6 @@ export default { this.handleClick(e); break; case this.eventTypes.CHANGE: - // eslint-disable-next-line no-unused-expressions this.selectingInitiatesLoad ? this.handleSelectionChange(e) : this.handleClick(e); diff --git a/src/digital-components/button-question/button-question.spec.js b/src/digital-components/button-question/button-question.spec.js index 6424abc4..e5e65c27 100644 --- a/src/digital-components/button-question/button-question.spec.js +++ b/src/digital-components/button-question/button-question.spec.js @@ -1,4 +1,3 @@ -/* eslint-disable max-len */ import { shallowMount } from '@vue/test-utils'; import buttonQuestion from '@/digital-components/button-question/button-question.vue'; import { getMountOptions } from '@/helpers/unit-test-helper.js'; diff --git a/src/digital-components/date-picker/date-picker.vue b/src/digital-components/date-picker/date-picker.vue index 9d1a1443..09b6ab44 100644 --- a/src/digital-components/date-picker/date-picker.vue +++ b/src/digital-components/date-picker/date-picker.vue @@ -593,7 +593,6 @@ export default { this.findFirstAvailableDateInView(); let attempts = 0; while (!this.selectedDate && attempts < 5) { - // eslint-disable-next-line no-await-in-loop await this.gotoNextPage(); attempts += 1; } diff --git a/src/digital-components/modal/modal.vue b/src/digital-components/modal/modal.vue index 8f952d6b..d4be7797 100644 --- a/src/digital-components/modal/modal.vue +++ b/src/digital-components/modal/modal.vue @@ -63,7 +63,6 @@ import { useForm } from 'vee-validate'; import { modalPositions } from '@/constants/component-variants'; export default { - // eslint-disable-next-line vue/multi-word-component-names name: 'modal', components: { ButtonMain @@ -103,7 +102,6 @@ export default { // TODO: Correct Duplicate key 'modalId' issue. // Probably just rename the prop. -br return { - // eslint-disable-next-line vue/no-dupe-keys modalId, meta, validate, diff --git a/src/digital-components/textbox-question/textbox-question.vue b/src/digital-components/textbox-question/textbox-question.vue index 85bef043..f198e125 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -157,7 +157,6 @@ export default { initialValue }; - // eslint-disable-next-line no-shadow const { errorMessage, handleBlur, handleChange, meta, validate, errors } = useField(props.inputId, props.validationRules, fieldOptions); diff --git a/src/global-methods.js b/src/global-methods.js index 211cc83d..bf515f6c 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -96,7 +96,7 @@ export default { ); } - if (error.response.status != '404') { + if (error.response.status !== 404) { global.$logger.logError( `${method}: ${endpoint}: ${error.message}`, error.response diff --git a/src/helpers/cms-content-helper.js b/src/helpers/cms-content-helper.js index bc550684..bf12c5c2 100644 --- a/src/helpers/cms-content-helper.js +++ b/src/helpers/cms-content-helper.js @@ -1,8 +1,3 @@ -/* eslint-disable no-use-before-define */ -/* eslint-disable no-param-reassign */ -/* eslint-disable jsdoc/require-param-type */ -/* eslint-disable jsdoc/require-param-description */ -/* eslint-disable jsdoc/require-returns */ import dynamicStrings from '@/constants/dynamic-strings'; import { useMainStore } from '@/store'; @@ -300,7 +295,6 @@ function mapStringToState(str) { // Our final string value that will be built from the matches. const stringBuilder = ''; - // eslint-disable-next-line no-restricted-syntax for (const match of globalStateMatches) { // Reset store state for each match. const valueFromStore = getStoreValueFromString(match[2]); @@ -331,12 +325,10 @@ function getStoreValueFromString(str) { if (!str) return ''; let storeOrStateObject = useMainStore(); - // eslint-disable-next-line no-restricted-syntax for (const s of str.split('.')) { if (s === 'getters') continue; // For backward compatibility // TODO: I don't think this next line is doing what they think it's doing. - // eslint-disable-next-line eqeqeq, valid-typeof - if (typeof storeOrStateObject[s] != undefined) { + if (typeof storeOrStateObject[s] !== "undefined") { storeOrStateObject = storeOrStateObject[s]; } else { break; @@ -384,13 +376,11 @@ export function processIfStatements(str, ifConditionKeyword, replacePlaceholderC */ function getAndFlagFirstNonNestedIfStatementWithKeyword(matches, ifConditionKeyword) { let index = 0; - // eslint-disable-next-line no-restricted-syntax for (const match of matches) { if (match.groups.isIfStatement && match.groups.ifConditionType === ifConditionKeyword) { let interiorIndex = 0; let nestedLevel = 0; let elseStatementIndex = null; - // eslint-disable-next-line no-restricted-syntax for (const interiorMatch of matches.slice(index + 1)) { if (interiorMatch.groups.isIfStatement) { if (interiorMatch.groups.ifConditionType === ifConditionKeyword) { @@ -539,7 +529,6 @@ export function doesCopyContainTextLink(copy) { export function setupModalLinks(context) { context.$nextTick(() => { const elements = document.getElementsByClassName('modal-text'); - // eslint-disable-next-line no-restricted-syntax for (const element of elements) { const target = element.getAttribute('modalTarget'); if (target) { @@ -626,7 +615,7 @@ export function getRouterLinkHtmlStringFromCopy(copy) { /** * Returns a phone link as an 'a' tag element - * @param copy + * @param phoneNumber * @returns string */ export function getPhoneLinkHtmlStringFromPhoneNumber(phoneNumber) { diff --git a/src/helpers/cookie-helper.js b/src/helpers/cookie-helper.js index fbd6caad..9f199611 100644 --- a/src/helpers/cookie-helper.js +++ b/src/helpers/cookie-helper.js @@ -6,7 +6,6 @@ import { useMainStore } from '@/store'; * @function isLocalhost */ function isLocalhost() { - // eslint-disable-next-line no-restricted-globals return location.hostname.includes('localhost'); } @@ -30,7 +29,6 @@ function getCookieValueByName(name) { Gets current domain without the subdomain for cookie. */ function getDomainWithoutSubdomain() { - // eslint-disable-next-line no-restricted-globals const url = location.hostname; if (isLocalhost()) { return 'localhost'; diff --git a/src/helpers/damage-helper.js b/src/helpers/damage-helper.js index 34bfc890..7083d7c0 100644 --- a/src/helpers/damage-helper.js +++ b/src/helpers/damage-helper.js @@ -44,7 +44,6 @@ function hasMatchingReplacementOption(vehicleDamageOptions, selectedGlassToRepla Rear: 'backGlassOptions' }; - // eslint-disable-next-line no-restricted-syntax for (const glassToReplace of selectedGlassToReplace) { const propName = optionsMap[glassToReplace.glassLocation]; const { availableReplacementOptions } = vehicleDamageOptions[propName]; diff --git a/src/helpers/date-helper.js b/src/helpers/date-helper.js index 24a90760..5112b243 100644 --- a/src/helpers/date-helper.js +++ b/src/helpers/date-helper.js @@ -134,7 +134,6 @@ export function getDateFormat(date, format) { const hour = (`0${date.getHours()}`).slice(-2); const minute = (`0${date.getMinutes()}`).slice(-2); const second = (`0${date.getSeconds()}`).slice(-2); - // eslint-disable-next-line consistent-return return format .replace('yyyy', year) .replace('MM', month) @@ -147,7 +146,6 @@ export function getDateFormat(date, format) { export function padTo2Digits(time) { // Use the built-in method toString() with a radix of 10 to convert the time value to a decimal string - // eslint-disable-next-line no-param-reassign time = time.toString(10); // Use the conditional operator to check if the length of the string is less than 2 return time.length < 2 @@ -172,7 +170,6 @@ export function convertMsToTime(milliseconds) { export function calculateDuration(startDate, endDate) { if (startDate instanceof Date !== true) return; if (endDate instanceof Date !== true) return; - // eslint-disable-next-line consistent-return return convertMsToTime(endDate - startDate); } diff --git a/src/helpers/experiment-helper.js b/src/helpers/experiment-helper.js index e0f8823b..d454e790 100644 --- a/src/helpers/experiment-helper.js +++ b/src/helpers/experiment-helper.js @@ -1,4 +1,3 @@ -/* eslint-disable max-len */ import { experimentSettings } from '@/constants/experiments'; export function hasExperimentSetting(storeExperimentSettings, settingName) { diff --git a/src/helpers/line-items-helper.js b/src/helpers/line-items-helper.js index 9ad4bca3..a1ccfd81 100644 --- a/src/helpers/line-items-helper.js +++ b/src/helpers/line-items-helper.js @@ -1,4 +1,3 @@ -// eslint-disable-next-line import/prefer-default-export export function getLineItemsFlattened(lineItems) { return lineItems?.flatMap((li) => [li, ...(getLineItemsFlattened(li.childParts))]) ?? []; } diff --git a/src/helpers/object-helper.js b/src/helpers/object-helper.js index 0f674098..37ee46be 100644 --- a/src/helpers/object-helper.js +++ b/src/helpers/object-helper.js @@ -13,7 +13,6 @@ export function deepClone(object) { } const clone = { ...object }; - // eslint-disable-next-line no-return-assign Object.keys(clone).forEach((key) => (clone[key] = typeof object[key] === 'object' ? deepClone(object[key]) : object[key])); diff --git a/src/helpers/price-calculator.js b/src/helpers/price-calculator.js index 66e2cdd8..724154cd 100644 --- a/src/helpers/price-calculator.js +++ b/src/helpers/price-calculator.js @@ -6,7 +6,6 @@ export function getPriceOfLineItem(lineItem) { let price = (lineItem.kitPrice ?? 0) + (lineItem.laborAmount ?? 0) + (lineItem.sellingPrice ?? 0); if (lineItem.childParts && lineItem.childParts.length !== 0) { - // eslint-disable-next-line no-use-before-define price += getPriceOfLineItems(lineItem.childParts); } return price; @@ -15,7 +14,6 @@ export function getPriceOfLineItem(lineItem) { export function getSalesTaxOfLineItem(lineItem) { let price = lineItem.salesTax ?? 0; if (lineItem.childParts && lineItem.childParts.length !== 0) { - // eslint-disable-next-line no-use-before-define price += getTaxOfLineItems(lineItem.childParts); } return price; diff --git a/src/helpers/querystring-helper.spec.js b/src/helpers/querystring-helper.spec.js index 4af685d9..758a2ebc 100644 --- a/src/helpers/querystring-helper.spec.js +++ b/src/helpers/querystring-helper.spec.js @@ -44,7 +44,6 @@ describe('querystring-helper', () => { const result = getLineItemQueryString(lineItems, 'param'); // Assert - // eslint-disable-next-line max-len expect(result).toBe('¶m[0].partNumber=a¶m[1].partNumber=b¶m[2].partNumber=c¶m[3].partNumber=d¶m[4].partNumber=e'); }); }); @@ -74,7 +73,6 @@ describe('querystring-helper', () => { const result = getTaxLineItemQueryString(lineItems, 'param'); // Assert - // eslint-disable-next-line max-len expect(result).toBe('¶m[0].partNumber=a¶m[0].laborAmount=0¶m[0].sellingPrice=10¶m[0].kitPrice=10¶m[1].partNumber=b¶m[1].laborAmount=10¶m[1].sellingPrice=10¶m[1].kitPrice=0¶m[2].partNumber=c¶m[2].laborAmount=5¶m[2].sellingPrice=5¶m[2].kitPrice=5¶m[3].partNumber=d¶m[3].laborAmount=10¶m[3].sellingPrice=10¶m[3].kitPrice=10'); }); }); diff --git a/src/helpers/text-helper.js b/src/helpers/text-helper.js index b6fc5184..ecafb48b 100644 --- a/src/helpers/text-helper.js +++ b/src/helpers/text-helper.js @@ -114,7 +114,7 @@ const currencyFormatter = new Intl.NumberFormat('en-US', { /** * @function formatAmountInDollars - * @param {string, number} amount + * @param {string | number} amount * @returns {string} */ export function formatAmountInDollars(amount) { diff --git a/src/helpers/unit-test-helper.js b/src/helpers/unit-test-helper.js index ec5849ba..5d6b21bc 100644 --- a/src/helpers/unit-test-helper.js +++ b/src/helpers/unit-test-helper.js @@ -1,4 +1,3 @@ -/* eslint-disable import/no-extraneous-dependencies */ import { RouterLinkStub } from '@vue/test-utils'; import { createTestingPinia } from '@pinia/testing'; import navigationScenarios from '@/router/router-constants/navigation-scenarios.js'; @@ -60,9 +59,7 @@ export function getMountOptions(mockData) { // Heritage integration common methods export const cookies = { - [cookieNames.ISS_SESSION_INFO]: - // eslint-disable-next-line max-len - '{"ReferralNumber":"1566818","ReferralDate":"2022-03-15T10:56:24.597","ReferralCorrelationId":"404d2b04-f86e-45c3-b373-127b6217b060","ShouldResetState":false}', + [cookieNames.ISS_SESSION_INFO]: '{"ReferralNumber":"1566818","ReferralDate":"2022-03-15T10:56:24.597","ReferralCorrelationId":"404d2b04-f86e-45c3-b373-127b6217b060","ShouldResetState":false}', UNIQUE_SESSION_ID: '33756020-b58e-4ec7-b8b8-3f1576719c40', anotherCookie: '{}', someOtherCookie: '{}', diff --git a/src/iss-components/address-questions/address-questions.vue b/src/iss-components/address-questions/address-questions.vue index a5ffd559..1dd125ab 100644 --- a/src/iss-components/address-questions/address-questions.vue +++ b/src/iss-components/address-questions/address-questions.vue @@ -232,7 +232,6 @@ export default { const self = this; this.$nextTick(() => { this.showAllFields = true; - // eslint-disable-next-line no-restricted-syntax let processedStreetAddress = false; let processedRoute = false; for (const component of googlePlace.address_components) { diff --git a/src/iss-components/google-map/google-map.spec.js b/src/iss-components/google-map/google-map.spec.js index 4bd2ceaf..774908aa 100644 --- a/src/iss-components/google-map/google-map.spec.js +++ b/src/iss-components/google-map/google-map.spec.js @@ -90,7 +90,6 @@ function getMountedComponent(mainInitialState = {}, initialData = {}, propsData async function awaitingSetupTicks(wrapper) { for (let i = 0; i < 11; i++) { - // eslint-disable-next-line no-await-in-loop await wrapper.vm.$nextTick(); } } diff --git a/src/iss-components/google-map/google-map.vue b/src/iss-components/google-map/google-map.vue index 686cf5ec..cf07efe7 100644 --- a/src/iss-components/google-map/google-map.vue +++ b/src/iss-components/google-map/google-map.vue @@ -119,8 +119,8 @@ export default { const map = await this.getMap(zipBounds?.getCenter()); await this.addMarkersToMap(map, markerPositions); - let positionsToDisplay = markerPositions.map((marker) => marker.position); - if(zipBounds) { + const positionsToDisplay = markerPositions.map((marker) => marker.position); + if (zipBounds) { positionsToDisplay.push(zipBounds.getNorthEast()); positionsToDisplay.push(zipBounds.getSouthWest()); } diff --git a/src/iss-components/questions-page-layout/questions-page-layout.spec.js b/src/iss-components/questions-page-layout/questions-page-layout.spec.js index 855ae439..e65ce89c 100644 --- a/src/iss-components/questions-page-layout/questions-page-layout.spec.js +++ b/src/iss-components/questions-page-layout/questions-page-layout.spec.js @@ -1,4 +1,3 @@ -/* eslint-disable max-len */ // Components import questionsPageLayout from '@/iss-components/questions-page-layout/questions-page-layout.vue'; diff --git a/src/layouts/address-lookup/address-lookup.spec.js b/src/layouts/address-lookup/address-lookup.spec.js index 1bae7462..648190c2 100644 --- a/src/layouts/address-lookup/address-lookup.spec.js +++ b/src/layouts/address-lookup/address-lookup.spec.js @@ -167,9 +167,7 @@ describe('address-lookup.vue', () => { expect(wrapper.findComponent({ ref: 'alertMatchedTwoIdenticalYMMVehicle' }).isVisible()).toBe(true); }); - // eslint-disable-next-line max-len - test( - 'if the looking up VIN by address is not allowed in the state selected display the Vin Lookup By HomeAddress Not Allowed Alert', + test('if the looking up VIN by address is not allowed in the state selected display the Vin Lookup By HomeAddress Not Allowed Alert', async () => { // Arrange const mockRegistrationAddress = { @@ -364,9 +362,7 @@ describe('address-lookup.vue', () => { ); }); - // eslint-disable-next-line max-len - test( - 'if a different vehicle is found than the one entered and the selected glass is not available for that vehicle, navigate back to vehicle-damage page', + test('if a different vehicle is found than the one entered and the selected glass is not available for that vehicle, navigate back to vehicle-damage page', async () => { // Arrange const mockRegistrationAddress = { diff --git a/src/layouts/address-lookup/address-lookup.vue b/src/layouts/address-lookup/address-lookup.vue index 60ff5199..d3db4c1f 100644 --- a/src/layouts/address-lookup/address-lookup.vue +++ b/src/layouts/address-lookup/address-lookup.vue @@ -107,7 +107,6 @@ export default { siteSubHeader, customerQuestions, alert, - // eslint-disable-next-line vue/no-reserved-component-names Form }, mixins: [baseFormMixin, vinPagesMixin], @@ -153,9 +152,7 @@ export default { ).replaceAll('{custom:damage}', getDamageString()); }, AlertMatchedDifferentVehicleBody() { - const vinYmmFound = - // eslint-disable-next-line max-len - `${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`; + const vinYmmFound = `${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`; const vinYmmExpected = `${useMainStore().order.vehicle.year} ${ useMainStore().order.vehicle.make } ${useMainStore().order.vehicle.model}`; @@ -175,12 +172,8 @@ export default { ).replaceAll('{custom:damage}', getDamageString()); }, AlertMatchedTwoIdenticalYMMVehicleBody() { - const vinYmmsFound = - // eslint-disable-next-line max-len - `${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model} ${this.customAlertData?.vehicleInfo?.style}`; - const vinYmmsExpected = - // eslint-disable-next-line max-len - `${useMainStore().order.vehicle.year} ${useMainStore().order.vehicle.make} ${useMainStore().order.vehicle.model} ${useMainStore().order.vehicle.style}`; + const vinYmmsFound = `${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model} ${this.customAlertData?.vehicleInfo?.style}`; + const vinYmmsExpected = `${useMainStore().order.vehicle.year} ${useMainStore().order.vehicle.make} ${useMainStore().order.vehicle.model} ${useMainStore().order.vehicle.style}`; return this.getCmsContent( 'AlertMatchedTwoIdenticalYMMVehicleWidget', @@ -191,9 +184,7 @@ export default { .replaceAll('{custom:vinYmmsExpected}', vinYmmsExpected); }, isTwoIdenticalYMMVehicleFound() { - const vinYmmFound = - // eslint-disable-next-line max-len - `${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`; + const vinYmmFound = `${this.customAlertData?.vehicleInfo?.year} ${this.customAlertData?.vehicleInfo?.make} ${this.customAlertData?.vehicleInfo?.model}`; const vinYmmExpected = `${useMainStore().order.vehicle.year} ${ useMainStore().order.vehicle.make } ${useMainStore().order.vehicle.model}`; @@ -290,9 +281,7 @@ export default { // Update button "Continue with..." showIssLoadingModal(false); - return this.$refs.siteFooter - // eslint-disable-next-line max-len - .updateButtonText(`Continue with ${carFound.year} ${carFound.make} ${carFound.model} ${this.forwardButtonCarStyle}`); + return this.$refs.siteFooter.updateButtonText(`Continue with ${carFound.year} ${carFound.make} ${carFound.model} ${this.forwardButtonCarStyle}`); } // update data diff --git a/src/layouts/address-vehicles/address-vehicles-question/address-vehicles-question.vue b/src/layouts/address-vehicles/address-vehicles-question/address-vehicles-question.vue index ba04cf22..9bdf1382 100644 --- a/src/layouts/address-vehicles/address-vehicles-question/address-vehicles-question.vue +++ b/src/layouts/address-vehicles/address-vehicles-question/address-vehicles-question.vue @@ -81,11 +81,8 @@ export default { ).replaceAll('{custom:damage}', getDamageString()); }, AlertMatchedTwoIdenticalYMMVehicleBody() { - const vinYmmsFound = - // eslint-disable-next-line max-len - `${this.selectedVehicle?.vehicle.year} ${this.selectedVehicle?.vehicle.make} ${this.selectedVehicle?.vehicle.model} ${this.selectedVehicle?.vehicle.style}`; - const vinYmmsExpected = - `${this.vehicleSelected?.year} ${this.vehicleSelected?.make} ${this.vehicleSelected?.model} ${this.vehicleSelected?.style}`; + const vinYmmsFound = `${this.selectedVehicle?.vehicle.year} ${this.selectedVehicle?.vehicle.make} ${this.selectedVehicle?.vehicle.model} ${this.selectedVehicle?.vehicle.style}`; + const vinYmmsExpected = `${this.vehicleSelected?.year} ${this.vehicleSelected?.make} ${this.vehicleSelected?.model} ${this.vehicleSelected?.style}`; return this.getCmsContent('AlertMatchedTwoIdenticalYMMVehicleWidget', 'BodyText') .replaceAll('{custom:damage}', getDamageString()) diff --git a/src/layouts/address-vehicles/address-vehicles.spec.js b/src/layouts/address-vehicles/address-vehicles.spec.js index 542e9a0d..01147679 100644 --- a/src/layouts/address-vehicles/address-vehicles.spec.js +++ b/src/layouts/address-vehicles/address-vehicles.spec.js @@ -190,9 +190,7 @@ describe('address-vehicles.vue', () => { expect(wrapper.vm.forwardButtonAction).toReturn; }); - // eslint-disable-next-line max-len - test( - 'Should navigate to CLICKED_FORWARD scenario if carId is different and selected glass not available for vehicle on navigateForward', + test('Should navigate to CLICKED_FORWARD scenario if carId is different and selected glass not available for vehicle on navigateForward', async () => { // Arrange const { wrapper } = setupMocks({}); diff --git a/src/layouts/address-vehicles/address-vehicles.vue b/src/layouts/address-vehicles/address-vehicles.vue index 3740b674..ea05519b 100644 --- a/src/layouts/address-vehicles/address-vehicles.vue +++ b/src/layouts/address-vehicles/address-vehicles.vue @@ -118,7 +118,6 @@ export default { siteFooter, siteHeader, siteSubHeader, - // eslint-disable-next-line vue/no-reserved-component-names Form, alert, addressVehiclesQuestion diff --git a/src/layouts/bailout-page/bailout-page.vue b/src/layouts/bailout-page/bailout-page.vue index db6aa074..b5000ce6 100644 --- a/src/layouts/bailout-page/bailout-page.vue +++ b/src/layouts/bailout-page/bailout-page.vue @@ -108,7 +108,6 @@ export default { siteSubHeader, siteFooter, textboxQuestion, - // eslint-disable-next-line vue/no-reserved-component-names Form, textBlock }, diff --git a/src/layouts/capability-questions/capability-questions.spec.js b/src/layouts/capability-questions/capability-questions.spec.js index 7f970443..d8b19833 100644 --- a/src/layouts/capability-questions/capability-questions.spec.js +++ b/src/layouts/capability-questions/capability-questions.spec.js @@ -29,9 +29,7 @@ const baseStoreGettersPageData = () => ({ capabilityQuestions: [ { questionSequence: 1, - questionText: - // eslint-disable-next-line max-len - 'Is your vehicle equipped with the optional Lane-Keeping System which tugs on the steering wheel and/or beeps to alert you if you drift too close to the edge of the lane?', + questionText: 'Is your vehicle equipped with the optional Lane-Keeping System which tugs on the steering wheel and/or beeps to alert you if you drift too close to the edge of the lane?', answers: [ { answerResult1: 'DYNAMIC', @@ -67,17 +65,13 @@ const baseStoreGettersDamage = () => ({ result: 'FW04848', answeredQuestions: [ { - questionText: - // eslint-disable-next-line max-len - 'Is your vehicle equipped with the Panoramic Sunroof which can be identified by having a glass panel over the rear seats?', + questionText: 'Is your vehicle equipped with the Panoramic Sunroof which can be identified by having a glass panel over the rear seats?', selectedAnswer: '1|nextQuestion|3|Yes', selectedAnswerText: 'Yes', questionNum: 1 }, { - questionText: - // eslint-disable-next-line max-len - 'Is your vehicle equipped with a heated windshield that melts snow and ice from underneath the windshield wiper blades?', + questionText: 'Is your vehicle equipped with a heated windshield that melts snow and ice from underneath the windshield wiper blades?', selectedAnswer: '2|nextQuestion|3|Yes', selectedAnswerText: 'Yes', questionNum: 2 @@ -212,17 +206,13 @@ describe('capabilityQuestions.vue', () => { answerResult: 'FW04848', answeredQuestions: [ { - questionText: - // eslint-disable-next-line max-len - 'Is your vehicle equipped with the Panoramic Sunroof which can be identified by having a glass panel over the rear seats?', + questionText: 'Is your vehicle equipped with the Panoramic Sunroof which can be identified by having a glass panel over the rear seats?', selectedAnswer: '1|nextQuestion|3|Yes', selectedAnswerText: 'Yes', questionNum: 1 }, { - questionText: - // eslint-disable-next-line max-len - 'Is your vehicle equipped with a heated windshield that melts snow and ice from underneath the windshield wiper blades?', + questionText: 'Is your vehicle equipped with a heated windshield that melts snow and ice from underneath the windshield wiper blades?', selectedAnswer: '2|nextQuestion|3|Yes', selectedAnswerText: 'Yes', questionNum: 2 diff --git a/src/layouts/capability-questions/capability-questions.vue b/src/layouts/capability-questions/capability-questions.vue index 494fcacd..f6f4c8a0 100644 --- a/src/layouts/capability-questions/capability-questions.vue +++ b/src/layouts/capability-questions/capability-questions.vue @@ -35,7 +35,6 @@ import questionsPageLayout from '@/iss-components/questions-page-layout/question export default { name: 'capability-questions', components: { - // eslint-disable-next-line vue/no-reserved-component-names Form, questionsPageLayout }, diff --git a/src/layouts/contact-details/contact-details.vue b/src/layouts/contact-details/contact-details.vue index c28d0d3a..ce4781ef 100644 --- a/src/layouts/contact-details/contact-details.vue +++ b/src/layouts/contact-details/contact-details.vue @@ -147,7 +147,6 @@ export default { checkbox, textareaQuestion, siteFooter, - // eslint-disable-next-line vue/no-reserved-component-names Form, alert, buttonQuestion, diff --git a/src/layouts/coverage-statement/cancel-claim-modal/cancel-claim-modal.vue b/src/layouts/coverage-statement/cancel-claim-modal/cancel-claim-modal.vue index 3427620d..fb208e76 100644 --- a/src/layouts/coverage-statement/cancel-claim-modal/cancel-claim-modal.vue +++ b/src/layouts/coverage-statement/cancel-claim-modal/cancel-claim-modal.vue @@ -1,4 +1,3 @@ -