diff --git a/eslint-baseline.json b/eslint-baseline.json new file mode 100644 index 000000000..1e1cc8359 --- /dev/null +++ b/eslint-baseline.json @@ -0,0 +1,3337 @@ +[ + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/docs/source/development/user-interface/js-functions/show_hide.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 12, + "column": 26, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 12, + "endColumn": 31 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 29, + "column": 26, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 29, + "endColumn": 31 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { ShowHide } from \"ShowHide/show_hide.js\";\n\nvar div_accompagnement = document.getElementById(\"form_accompagnement\"),\n div_accompagnement_comment = document.getElementById(\n \"form_accompagnement_comment\",\n ),\n div_caf_id = document.getElementById(\"cafId\"),\n div_caf_inscription_date = document.getElementById(\"cafInscriptionDate\");\n// let show/hide the div_accompagnement_comment if the input with value `'autre'` is checked\nnew ShowHide({\n froms: [div_accompagnement],\n test: function (froms, event) {\n for (let el of froms.values()) {\n for (let input of el.querySelectorAll(\"input\").values()) {\n if (input.value === \"autre\") {\n return input.checked;\n }\n }\n }\n\n return false;\n },\n container: [div_accompagnement_comment],\n});\n\n// let show the date input only if the the id is filled\nnew ShowHide({\n froms: [div_caf_id],\n test: function (froms, event) {\n for (let el of froms.values()) {\n return el.querySelector(\"input\").value !== \"\";\n }\n },\n container: [div_caf_inscription_date],\n // using this option, we use the event `input` instead of `change`\n event_name: \"input\",\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 136, + "column": 39, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 136, + "endColumn": 45 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 211, + "column": 47, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 211, + "endColumn": 53 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 18, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 18, + "endColumn": 10 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 57, + "column": 23, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 57, + "endColumn": 28 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { activityMessages } from \"./i18n\";\nimport store from \"./store\";\nimport PickTemplate from \"ChillDocGeneratorAssets/vuejs/_components/PickTemplate.vue\";\nimport { fetchTemplates } from \"ChillDocGeneratorAssets/api/pickTemplate.js\";\n\nimport App from \"./App.vue\";\n\nconst i18n = _createI18n(activityMessages);\n\n// app for activity\n\nconst hasSocialIssues = document.querySelector(\"#social-issues-acc\") !== null;\nconst hasLocation = document.querySelector(\"#location\") !== null;\nconst hasPerson = document.querySelector(\"#add-persons\") !== null;\n\nconst app = createApp({\n template: ``,\n data() {\n return {\n hasSocialIssues,\n hasLocation,\n hasPerson,\n };\n },\n})\n .use(store)\n .use(i18n)\n .component(\"app\", App)\n .mount(\"#activity\");\n\n// app for picking template\n\nconst i18nGendoc = _createI18n({});\n\ndocument.querySelectorAll(\"div[data-docgen-template-picker]\").forEach((el) => {\n fetchTemplates(el.dataset.entityClass).then((templates) => {\n const picker = {\n template:\n '',\n components: {\n PickTemplate,\n },\n data() {\n return {\n templates: templates,\n entityId: el.dataset.entityId,\n };\n },\n methods: {\n generateDoc({ event, link, template }) {\n console.log(\"generateDoc\");\n console.log(\"link\", link);\n console.log(\"template\", template);\n\n let hiddenInput = document.querySelector(\"input[data-template-id]\");\n\n if (hiddenInput === null) {\n console.error(\"hidden input not found\");\n return;\n }\n\n hiddenInput.value = template;\n\n let form = document.querySelector(\n 'form[name=\"chill_activitybundle_activity\"',\n );\n\n if (form === null) {\n console.error(\"form not found\");\n return;\n }\n\n form.submit();\n },\n },\n };\n createApp(picker).use(i18nGendoc).mount(el);\n });\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/store.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'resources' is assigned a value but never used.", + "line": 90, + "column": 13, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 90, + "endColumn": 22 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import \"es6-promise/auto\";\nimport { createStore } from \"vuex\";\nimport { postLocation } from \"./api\";\nimport prepareLocations from \"./store.locations.js\";\n\nconst debug = process.env.NODE_ENV !== \"production\";\n//console.log('window.activity', window.activity);\n\nconst addIdToValue = (string, id) => {\n let array = string ? string.split(\",\") : [];\n array.push(id.toString());\n let str = array.join();\n return str;\n};\n\nconst removeIdFromValue = (string, id) => {\n let array = string.split(\",\");\n array = array.filter((el) => el !== id.toString());\n let str = array.join();\n return str;\n};\n\nconst store = createStore({\n strict: debug,\n state: {\n activity: window.activity,\n socialIssuesOther: [],\n socialActionsList: [],\n availableLocations: [],\n },\n getters: {\n suggestedEntities(state) {\n if (\n typeof state.activity.accompanyingPeriod === \"undefined\" ||\n state.activity.accompanyingPeriod === null\n ) {\n return [];\n }\n const allEntities = [\n ...store.getters.suggestedPersons,\n ...store.getters.suggestedRequestor,\n ...store.getters.suggestedUser,\n ...store.getters.suggestedResources,\n ];\n const uniqueIds = [\n ...new Set(allEntities.map((i) => `${i.type}-${i.id}`)),\n ];\n return Array.from(\n uniqueIds,\n (id) => allEntities.filter((r) => `${r.type}-${r.id}` === id)[0],\n );\n },\n suggestedPersons(state) {\n const existingPersonIds = state.activity.persons.map((p) => p.id);\n return state.activity.activityType.personsVisible === 0\n ? []\n : state.activity.accompanyingPeriod.participations\n .filter((p) => p.endDate === null)\n .map((p) => p.person)\n .filter((p) => !existingPersonIds.includes(p.id));\n },\n suggestedRequestor(state) {\n if (state.activity.accompanyingPeriod.requestor === null) {\n return [];\n }\n const existingPersonIds = state.activity.persons.map((p) => p.id);\n const existingThirdPartyIds = state.activity.thirdParties.map(\n (p) => p.id,\n );\n\n return [state.activity.accompanyingPeriod.requestor].filter(\n (r) =>\n (r.type === \"person\" &&\n !existingPersonIds.includes(r.id) &&\n state.activity.activityType.personsVisible !== 0) ||\n (r.type === \"thirdparty\" &&\n !existingThirdPartyIds.includes(r.id) &&\n state.activity.activityType.thirdPartiesVisible !== 0),\n );\n },\n suggestedUser(state) {\n const existingUserIds = state.activity.users.map((p) => p.id);\n return state.activity.activityType.usersVisible === 0\n ? []\n : [state.activity.accompanyingPeriod.user].filter(\n (u) => u !== null && !existingUserIds.includes(u.id),\n );\n },\n suggestedResources(state) {\n const resources = state.activity.accompanyingPeriod.resources;\n const existingPersonIds = state.activity.persons.map((p) => p.id);\n const existingThirdPartyIds = state.activity.thirdParties.map(\n (p) => p.id,\n );\n return state.activity.accompanyingPeriod.resources\n .map((r) => r.resource)\n .filter(\n (r) =>\n (r.type === \"person\" &&\n !existingPersonIds.includes(r.id) &&\n state.activity.activityType.personsVisible !== 0) ||\n (r.type === \"thirdparty\" &&\n !existingThirdPartyIds.includes(r.id) &&\n state.activity.activityType.thirdPartiesVisible !== 0),\n );\n },\n socialActionsListSorted(state) {\n return [...state.socialActionsList].sort(\n (a, b) => a.ordering - b.ordering,\n );\n },\n },\n mutations: {\n // SocialIssueAcc\n addIssueInList(state, issue) {\n //console.log('add issue list', issue.id);\n state.activity.accompanyingPeriod.socialIssues.push(issue);\n },\n addIssueSelected(state, issue) {\n //console.log('add issue selected', issue.id);\n state.activity.socialIssues.push(issue);\n },\n updateIssuesSelected(state, issues) {\n //console.log('update issues selected', issues);\n state.activity.socialIssues = issues;\n },\n updateIssuesOther(state, payload) {\n //console.log('update issues other');\n state.socialIssuesOther = payload;\n },\n removeIssueInOther(state, issue) {\n //console.log('remove issue other', issue.id);\n state.socialIssuesOther = state.socialIssuesOther.filter(\n (i) => i.id !== issue.id,\n );\n },\n resetActionsList(state) {\n //console.log('reset list actions');\n state.socialActionsList = [];\n },\n addActionInList(state, action) {\n state.socialActionsList.push(action);\n },\n updateActionsSelected(state, actions) {\n //console.log('update actions selected', actions);\n state.activity.socialActions = actions;\n },\n filterList(state, list) {\n const filterList = (list) => {\n // remove duplicates entries\n list = list.filter(\n (value, index) =>\n list.findIndex((array) => array.id === value.id) === index,\n );\n // alpha sort\n list.sort((a, b) => (a.text > b.text ? 1 : b.text > a.text ? -1 : 0));\n return list;\n };\n if (list === \"issues\") {\n state.activity.accompanyingPeriod.socialIssues = filterList(\n state.activity.accompanyingPeriod.socialIssues,\n );\n }\n if (list === \"actions\") {\n state.socialActionsList = filterList(state.socialActionsList);\n }\n },\n\n // ConcernedGroups\n addPersonsInvolved(state, payload) {\n console.log(\"### mutation addPersonsInvolved\", payload);\n switch (payload.result.type) {\n case \"person\":\n state.activity.persons.push(payload.result);\n break;\n case \"thirdparty\":\n state.activity.thirdParties.push(payload.result);\n break;\n case \"user\":\n state.activity.users.push(payload.result);\n break;\n }\n },\n removePersonInvolved(state, payload) {\n //console.log('### mutation removePersonInvolved', payload.type);\n switch (payload.type) {\n case \"person\":\n state.activity.persons = state.activity.persons.filter(\n (person) => person !== payload,\n );\n break;\n case \"thirdparty\":\n state.activity.thirdParties = state.activity.thirdParties.filter(\n (thirdparty) => thirdparty !== payload,\n );\n break;\n case \"user\":\n state.activity.users = state.activity.users.filter(\n (user) => user !== payload,\n );\n break;\n }\n },\n updateLocation(state, value) {\n console.log(\"### mutation: updateLocation\", value);\n state.activity.location = value;\n },\n addAvailableLocationGroup(state, group) {\n state.availableLocations.push(group);\n },\n },\n actions: {\n addIssueSelected({ commit }, issue) {\n let aSocialIssues = document.getElementById(\n \"chill_activitybundle_activity_socialIssues\",\n );\n aSocialIssues.value = addIdToValue(aSocialIssues.value, issue.id);\n commit(\"addIssueSelected\", issue);\n },\n updateIssuesSelected({ commit }, payload) {\n let aSocialIssues = document.getElementById(\n \"chill_activitybundle_activity_socialIssues\",\n );\n aSocialIssues.value = \"\";\n payload.forEach((item) => {\n aSocialIssues.value = addIdToValue(aSocialIssues.value, item.id);\n });\n commit(\"updateIssuesSelected\", payload);\n },\n updateActionsSelected({ commit }, payload) {\n let aSocialActions = document.getElementById(\n \"chill_activitybundle_activity_socialActions\",\n );\n aSocialActions.value = \"\";\n payload.forEach((item) => {\n aSocialActions.value = addIdToValue(aSocialActions.value, item.id);\n });\n commit(\"updateActionsSelected\", payload);\n },\n addAvailableLocationGroup({ commit }, payload) {\n commit(\"addAvailableLocationGroup\", payload);\n },\n addPersonsInvolved({ commit }, payload) {\n //console.log('### action addPersonsInvolved', payload.result.type);\n switch (payload.result.type) {\n case \"person\":\n let aPersons = document.getElementById(\n \"chill_activitybundle_activity_persons\",\n );\n aPersons.value = addIdToValue(aPersons.value, payload.result.id);\n break;\n case \"thirdparty\":\n let aThirdParties = document.getElementById(\n \"chill_activitybundle_activity_thirdParties\",\n );\n aThirdParties.value = addIdToValue(\n aThirdParties.value,\n payload.result.id,\n );\n break;\n case \"user\":\n let aUsers = document.getElementById(\n \"chill_activitybundle_activity_users\",\n );\n aUsers.value = addIdToValue(aUsers.value, payload.result.id);\n break;\n }\n commit(\"addPersonsInvolved\", payload);\n },\n removePersonInvolved({ commit }, payload) {\n //console.log('### action removePersonInvolved', payload);\n switch (payload.type) {\n case \"person\":\n let aPersons = document.getElementById(\n \"chill_activitybundle_activity_persons\",\n );\n aPersons.value = removeIdFromValue(aPersons.value, payload.id);\n break;\n case \"thirdparty\":\n let aThirdParties = document.getElementById(\n \"chill_activitybundle_activity_thirdParties\",\n );\n aThirdParties.value = removeIdFromValue(\n aThirdParties.value,\n payload.id,\n );\n break;\n case \"user\":\n let aUsers = document.getElementById(\n \"chill_activitybundle_activity_users\",\n );\n aUsers.value = removeIdFromValue(aUsers.value, payload.id);\n break;\n }\n commit(\"removePersonInvolved\", payload);\n },\n updateLocation({ commit }, value) {\n console.log(\"### action: updateLocation\", value);\n let hiddenLocation = document.getElementById(\n \"chill_activitybundle_activity_location\",\n );\n if (value.onthefly) {\n const body = {\n type: \"location\",\n name:\n value.name === \"__AccompanyingCourseLocation__\" ? null : value.name,\n locationType: {\n id: value.locationType.id,\n type: \"location-type\",\n },\n };\n if (value.address.id) {\n Object.assign(body, {\n address: {\n id: value.address.id,\n },\n });\n }\n postLocation(body)\n .then((location) => (hiddenLocation.value = location.id))\n .catch((err) => {\n console.log(err.message);\n });\n } else {\n hiddenLocation.value = value.id;\n }\n commit(\"updateLocation\", value);\n },\n },\n});\n\nprepareLocations(store);\n\nexport default store;\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/Resources/public/module/Invite/answer.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 7, + "column": 57, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 7, + "endColumn": 58 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport Answer from \"ChillCalendarAssets/vuejs/Invite/Answer\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\n\nconst i18n = _createI18n({});\n\ndocument.addEventListener(\"DOMContentLoaded\", function (e) {\n console.log(\"dom loaded answer\");\n document.querySelectorAll(\"div[invite-answer]\").forEach(function (el) {\n console.log(\"element found\", el);\n\n const app = createApp({\n components: {\n Answer,\n },\n data() {\n return {\n status: el.dataset.status,\n calendarId: Number.parseInt(el.dataset.calendarId),\n };\n },\n template:\n '',\n methods: {\n onStatusChanged: function (newStatus) {\n this.$data.status = newStatus;\n },\n },\n });\n\n app.use(i18n).mount(el);\n });\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/Components/CalendarActive.vue", + "messages": [ + { + "ruleId": "vue/valid-v-else", + "severity": 2, + "message": "'v-else' directives require no attribute value.", + "line": 19, + "column": 30, + "nodeType": "VExpressionContainer", + "messageId": "unexpectedValue", + "endLine": 19, + "endColumn": 32 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'mapGetters' is defined but never used.", + "line": 54, + "column": 10, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 54, + "endColumn": 20 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 10, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 10, + "endColumn": 10 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { appMessages } from \"./i18n\";\nimport store from \"./store\";\n\nimport App from \"./App.vue\";\n\nconst i18n = _createI18n(appMessages);\n\nconst app = createApp({\n template: ``,\n})\n .use(store)\n .use(i18n)\n .component(\"app\", App)\n .mount(\"#calendar\");\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/actions.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'getters' is defined but never used.", + "line": 29, + "column": 32, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 29, + "endColumn": 39 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'state' is defined but never used.", + "line": 238, + "column": 35, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 238, + "endColumn": 40 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { addIdToValue, removeIdFromValue } from \"./utils\";\nimport {\n fetchCalendarRangeForUser,\n fetchCalendarRemoteForUser,\n fetchCalendarLocalForUser,\n} from \"./../api\";\nimport { datetimeToISO } from \"ChillMainAssets/chill/js/date\";\nimport { postLocation } from \"ChillActivityAssets/vuejs/Activity/api\";\n\n/**\n * This will store a unique key for each value, and prevent to launch the same\n * request multiple times, when fetching user calendars.\n *\n * Actually, each time a user is added or removed, the methods \"dateSet\" is executed and this\n * sparkle a request by user to get the calendar data. When the calendar data is fetched, it is\n * immediatly added to the calendar which, in turn , launch the event dateSet and re-launch fetch\n * queries which has not yet ended. Storing the queries already executed prevent this loop.\n *\n * @type {Set}\n */\nconst fetchings = new Set();\n\nexport default {\n setCurrentDatesView({ commit, dispatch }, { start, end }) {\n commit(\"setCurrentDatesView\", { start, end });\n\n return dispatch(\"fetchCalendarEvents\");\n },\n fetchCalendarEvents({ state, getters, dispatch }) {\n if (state.currentView.start === null && state.currentView.end === null) {\n return Promise.resolve();\n }\n\n let promises = [];\n for (const uid of state.currentView.users.keys()) {\n let unique = `${uid}, ${state.currentView.start.toISOString()}, ${state.currentView.end.toISOString()}`;\n\n if (fetchings.has(unique)) {\n console.log(\"prevent from fetching for a user\", unique);\n continue;\n }\n\n fetchings.add(unique);\n\n promises.push(\n dispatch(\"fetchCalendarRangeForUser\", {\n user: state.usersData.get(uid).user,\n start: state.currentView.start,\n end: state.currentView.end,\n }),\n );\n promises.push(\n dispatch(\"fetchCalendarRemotesForUser\", {\n user: state.usersData.get(uid).user,\n start: state.currentView.start,\n end: state.currentView.end,\n }),\n );\n promises.push(\n dispatch(\"fetchCalendarLocalsForUser\", {\n user: state.usersData.get(uid).user,\n start: state.currentView.start,\n end: state.currentView.end,\n }),\n );\n }\n\n return Promise.all(promises);\n },\n fetchCalendarRangeForUser({ commit, getters }, { user, start, end }) {\n if (!getters.isCalendarRangeLoadedForUser({ user, start, end })) {\n return fetchCalendarRangeForUser(user, start, end).then((ranges) => {\n commit(\"addCalendarRangesForUser\", { user, ranges, start, end });\n\n return Promise.resolve();\n });\n }\n },\n fetchCalendarRemotesForUser({ commit, getters }, { user, start, end }) {\n if (!getters.isCalendarRemoteLoadedForUser({ user, start, end })) {\n return fetchCalendarRemoteForUser(user, start, end).then((remotes) => {\n commit(\"addCalendarRemotesForUser\", { user, remotes, start, end });\n\n return Promise.resolve();\n });\n }\n },\n fetchCalendarLocalsForUser({ commit, getters }, { user, start, end }) {\n if (!getters.isCalendarRemoteLoadedForUser({ user, start, end })) {\n return fetchCalendarLocalForUser(user, start, end).then((locals) => {\n commit(\"addCalendarLocalsForUser\", { user, locals, start, end });\n\n return Promise.resolve();\n });\n }\n },\n addPersonsInvolved({ commit, dispatch }, payload) {\n console.log(\"### action addPersonsInvolved\", payload.result.type);\n console.log(\"### action addPersonsInvolved payload result\", payload.result);\n switch (payload.result.type) {\n case \"person\":\n let aPersons = document.getElementById(\n \"chill_activitybundle_activity_persons\",\n );\n aPersons.value = addIdToValue(aPersons.value, payload.result.id);\n break;\n case \"thirdparty\":\n let aThirdParties = document.getElementById(\n \"chill_activitybundle_activity_professionals\",\n );\n aThirdParties.value = addIdToValue(\n aThirdParties.value,\n payload.result.id,\n );\n break;\n case \"user\":\n let aUsers = document.getElementById(\n \"chill_activitybundle_activity_users\",\n );\n aUsers.value = addIdToValue(aUsers.value, payload.result.id);\n commit(\"showUserOnCalendar\", {\n user: payload.result,\n ranges: false,\n remotes: true,\n });\n dispatch(\"fetchCalendarEvents\");\n break;\n }\n commit(\"addPersonsInvolved\", payload);\n },\n removePersonInvolved({ commit }, payload) {\n //console.log('### action removePersonInvolved', payload);\n switch (payload.type) {\n case \"person\":\n let aPersons = document.getElementById(\n \"chill_activitybundle_activity_persons\",\n );\n aPersons.value = removeIdFromValue(aPersons.value, payload.id);\n break;\n case \"thirdparty\":\n let aThirdParties = document.getElementById(\n \"chill_activitybundle_activity_professionals\",\n );\n aThirdParties.value = removeIdFromValue(\n aThirdParties.value,\n payload.id,\n );\n break;\n case \"user\":\n let aUsers = document.getElementById(\n \"chill_activitybundle_activity_users\",\n );\n aUsers.value = removeIdFromValue(aUsers.value, payload.id);\n break;\n }\n commit(\"removePersonInvolved\", payload);\n },\n\n // Calendar\n /**\n * set event startDate and endDate.\n *\n * if the mainUser is different from \"me\", it will replace the mainUser\n *\n * @param commit\n * @param state\n * @param getters\n * @param start\n * @param end\n */\n setEventTimes({ commit, state, getters }, { start, end }) {\n console.log(\"### action createEvent\", { start, end });\n let startDateInput = document.getElementById(\n \"chill_activitybundle_activity_startDate\",\n );\n startDateInput.value = null !== start ? datetimeToISO(start) : \"\";\n let endDateInput = document.getElementById(\n \"chill_activitybundle_activity_endDate\",\n );\n endDateInput.value = null !== end ? datetimeToISO(end) : \"\";\n let calendarRangeInput = document.getElementById(\n \"chill_activitybundle_activity_calendarRange\",\n );\n calendarRangeInput.value = \"\";\n\n if (\n getters.getMainUser === null ||\n getters.getMainUser.id !== state.me.id\n ) {\n let mainUserInput = document.getElementById(\n \"chill_activitybundle_activity_mainUser\",\n );\n mainUserInput.value = state.me.id;\n commit(\"setMainUser\", state.me);\n }\n\n commit(\"setEventTimes\", { start, end });\n },\n associateCalendarToRange({ state, commit, dispatch, getters }, { range }) {\n console.log(\"### action associateCAlendarToRange\", range);\n let startDateInput = document.getElementById(\n \"chill_activitybundle_activity_startDate\",\n );\n startDateInput.value = null !== range ? datetimeToISO(range.start) : \"\";\n let endDateInput = document.getElementById(\n \"chill_activitybundle_activity_endDate\",\n );\n endDateInput.value = null !== range ? datetimeToISO(range.end) : \"\";\n let calendarRangeInput = document.getElementById(\n \"chill_activitybundle_activity_calendarRange\",\n );\n calendarRangeInput.value =\n null !== range ? Number(range.extendedProps.calendarRangeId) : \"\";\n\n if (null !== range) {\n let location = getters.getLocationById(range.extendedProps.locationId);\n\n if (null === location) {\n console.error(\"location not found!\", range.extendedProps.locationId);\n }\n\n dispatch(\"updateLocation\", location);\n\n const userId = range.extendedProps.userId;\n if (\n state.activity.mainUser !== null &&\n state.activity.mainUser.id !== userId\n ) {\n dispatch(\"setMainUser\", state.usersData.get(userId).user);\n\n // TODO: remove persons involved with this user\n }\n }\n\n commit(\"associateCalendarToRange\", { range });\n return Promise.resolve();\n },\n setMainUser({ commit, dispatch, state }, mainUser) {\n console.log(\"setMainUser\", mainUser);\n\n let mainUserInput = document.getElementById(\n \"chill_activitybundle_activity_mainUser\",\n );\n mainUserInput.value = Number(mainUser.id);\n\n return dispatch(\"associateCalendarToRange\", { range: null }).then(() => {\n commit(\"setMainUser\", mainUser);\n\n return dispatch(\"fetchCalendarEvents\");\n });\n },\n\n // Location\n updateLocation({ commit }, value) {\n console.log(\"### action: updateLocation\", value);\n let hiddenLocation = document.getElementById(\n \"chill_activitybundle_activity_location\",\n );\n if (value.onthefly) {\n const body = {\n type: \"location\",\n name:\n value.name === \"__AccompanyingCourseLocation__\" ? null : value.name,\n locationType: {\n id: value.locationType.id,\n type: \"location-type\",\n },\n };\n if (value.address.id) {\n Object.assign(body, {\n address: {\n id: value.address.id,\n },\n });\n }\n postLocation(body)\n .then((location) => (hiddenLocation.value = location.id))\n .catch((err) => {\n console.log(err.message);\n });\n } else {\n hiddenLocation.value = value.id;\n }\n commit(\"updateLocation\", value);\n },\n};\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/getters.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'getters' is defined but never used.", + "line": 30, + "column": 26, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 30, + "endColumn": 33 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'resources' is assigned a value but never used.", + "line": 279, + "column": 11, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 279, + "endColumn": 20 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "export default {\n /**\n * get the main user of the event/Calendar\n *\n * @param state\n * @returns {*|null}\n */\n getMainUser(state) {\n return state.activity.mainUser || null;\n },\n /**\n * return the date of the event/Calendar\n *\n * @param state\n * @returns {Date}\n */\n getEventDate(state) {\n if (null === state.activity.start) {\n return new Date();\n }\n throw \"transform date to object ?\";\n },\n /**\n * Compute the event sources to show on the FullCalendar\n *\n * @param state\n * @param getters\n * @returns {[]}\n */\n getEventSources(state, getters) {\n let sources = [];\n\n // current calendar\n if (state.activity.startDate !== null && state.activity.endDate !== null) {\n const s = {\n id: \"current\",\n events: [\n {\n title: \"Rendez-vous\",\n start: state.activity.startDate,\n end: state.activity.endDate,\n allDay: false,\n is: \"current\",\n classNames: [\"iscurrent\"],\n },\n ],\n editable: state.activity.calendarRange === null,\n };\n\n sources.push(s);\n }\n\n for (const [userId, kinds] of state.currentView.users.entries()) {\n if (!state.usersData.has(userId)) {\n console.log(\"try to get events on a user which not exists\", userId);\n continue;\n }\n\n const userData = state.usersData.get(userId);\n\n if (kinds.ranges && userData.calendarRanges.length > 0) {\n const s = {\n id: `ranges_${userId}`,\n events: userData.calendarRanges.filter(\n (r) =>\n state.activity.calendarRange === null ||\n r.calendarRangeId !==\n state.activity.calendarRange.calendarRangeId,\n ),\n color: userData.mainColor,\n classNames: [\"isrange\"],\n backgroundColor: \"white\",\n textColor: \"black\",\n editable: false,\n };\n\n sources.push(s);\n }\n\n if (kinds.remotes && userData.remotes.length > 0) {\n const s = {\n id: `remote_${userId}`,\n events: userData.remotes,\n color: userData.mainColor,\n textColor: \"black\",\n editable: false,\n };\n\n sources.push(s);\n }\n\n // if remotes is checked, we display also the locals calendars\n if (kinds.remotes && userData.locals.length > 0) {\n const s = {\n id: `local_${userId}`,\n events: userData.locals.filter(\n (l) => l.originId !== state.activity.id,\n ),\n color: userData.mainColor,\n textColor: \"black\",\n editable: false,\n };\n\n sources.push(s);\n }\n }\n\n return sources;\n },\n getInitialDate(state) {\n return state.activity.startDate;\n },\n getInviteForUser: (state) => (user) => {\n return state.activity.invites.find((i) => i.user.id === user.id);\n },\n /**\n * get the user data for a specific user\n *\n * @param state\n * @returns {function(*): unknown}\n */\n getUserData: (state) => (user) => {\n return state.usersData.get(user.id);\n },\n getUserDataById: (state) => (userId) => {\n return state.usersData.get(userId);\n },\n /**\n * return true if the user has an entry in userData\n *\n * @param state\n * @returns {function(*): boolean}\n */\n hasUserData: (state) => (user) => {\n return state.usersData.has(user.id);\n },\n hasUserDataById: (state) => (userId) => {\n return state.usersData.has(userId);\n },\n /**\n * return true if there was a fetch query for event between this date (start and end),\n * those date are included.\n *\n * @param state\n * @param getters\n * @returns {(function({user: *, start: *, end: *}): (boolean))|*}\n */\n isCalendarRangeLoadedForUser:\n (state, getters) =>\n ({ user, start, end }) => {\n if (!getters.hasUserData(user)) {\n return false;\n }\n\n for (let interval of getters.getUserData(user).calendarRangesLoaded) {\n if (start >= interval.start && end <= interval.end) {\n return true;\n }\n }\n\n return false;\n },\n /**\n * return true if there was a fetch query for event between this date (start and end),\n * those date are included.\n *\n * @param state\n * @param getters\n * @returns {(function({user: *, start: *, end: *}): (boolean))|*}\n */\n isCalendarRemoteLoadedForUser:\n (state, getters) =>\n ({ user, start, end }) => {\n if (!getters.hasUserData(user)) {\n return false;\n }\n\n for (let interval of getters.getUserData(user).remotesLoaded) {\n if (start >= interval.start && end <= interval.end) {\n return true;\n }\n }\n\n return false;\n },\n /**\n * return true if the user ranges are shown on calendar\n *\n * @param state\n * @returns boolean\n */\n isRangeShownOnCalendarForUser: (state) => (user) => {\n const k = state.currentView.users.get(user.id);\n if (typeof k === \"undefined\") {\n console.error(\n \"try to determinate if calendar range is shown and user is not in currentView\",\n );\n return false;\n }\n\n return k.ranges;\n },\n\n /**\n * return true if the user remote is shown on calendar\n * @param state\n * @returns boolean\n */\n isRemoteShownOnCalendarForUser: (state) => (user) => {\n const k = state.currentView.users.get(user.id);\n if (typeof k === \"undefined\") {\n console.error(\n \"try to determinate if calendar range is shown and user is not in currentView\",\n );\n return false;\n }\n\n return k.remotes;\n },\n\n getLocationById: (state) => (id) => {\n for (let group of state.availableLocations) {\n console.log(\"group\", group);\n const found = group.locations.find((l) => l.id === id);\n if (typeof found !== \"undefined\") {\n return found;\n }\n }\n\n return null;\n },\n\n suggestedEntities(state, getters) {\n if (typeof state.activity.accompanyingPeriod === \"undefined\") {\n return [];\n }\n const allEntities = [\n ...getters.suggestedPersons,\n ...getters.suggestedRequestor,\n ...getters.suggestedUser,\n ...getters.suggestedResources,\n ];\n const uniqueIds = [...new Set(allEntities.map((i) => `${i.type}-${i.id}`))];\n return Array.from(\n uniqueIds,\n (id) => allEntities.filter((r) => `${r.type}-${r.id}` === id)[0],\n );\n },\n suggestedPersons(state) {\n const existingPersonIds = state.activity.persons.map((p) => p.id);\n return state.activity.accompanyingPeriod.participations\n .filter((p) => p.endDate === null)\n .map((p) => p.person)\n .filter((p) => !existingPersonIds.includes(p.id));\n },\n suggestedRequestor(state) {\n if (state.activity.accompanyingPeriod.requestor === null) {\n return [];\n }\n\n const existingPersonIds = state.activity.persons.map((p) => p.id);\n const existingThirdPartyIds = state.activity.thirdParties.map((p) => p.id);\n return [state.activity.accompanyingPeriod.requestor].filter(\n (r) =>\n (r.type === \"person\" && !existingPersonIds.includes(r.id)) ||\n (r.type === \"thirdparty\" && !existingThirdPartyIds.includes(r.id)),\n );\n },\n suggestedUser(state) {\n if (null === state.activity.users) {\n return [];\n }\n const existingUserIds = state.activity.users.map((p) => p.id);\n return [state.activity.accompanyingPeriod.user].filter(\n (u) => u !== null && !existingUserIds.includes(u.id),\n );\n },\n suggestedResources(state) {\n const resources = state.activity.accompanyingPeriod.resources;\n const existingPersonIds = state.activity.persons.map((p) => p.id);\n const existingThirdPartyIds = state.activity.thirdParties.map((p) => p.id);\n return state.activity.accompanyingPeriod.resources\n .map((r) => r.resource)\n .filter(\n (r) =>\n (r.type === \"person\" && !existingPersonIds.includes(r.id)) ||\n (r.type === \"thirdparty\" && !existingThirdPartyIds.includes(r.id)),\n );\n },\n};\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'postLocation' is defined but never used.", + "line": 3, + "column": 10, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 3, + "endColumn": 22 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import \"es6-promise/auto\";\nimport { createStore } from \"vuex\";\nimport { postLocation } from \"ChillActivityAssets/vuejs/Activity/api\";\nimport getters from \"./getters\";\nimport actions from \"./actions\";\nimport mutations from \"./mutations\";\nimport { mapEntity } from \"./utils\";\nimport { whoami } from \"../api\";\nimport prepareLocations from \"ChillActivityAssets/vuejs/Activity/store.locations\";\n\nconst debug = process.env.NODE_ENV !== \"production\";\n\nconst store = createStore({\n strict: debug,\n state: {\n activity: mapEntity(window.entity), // activity is the calendar entity actually\n currentEvent: null,\n availableLocations: [],\n /**\n * the current user\n */\n me: null,\n /**\n * store information about current view\n */\n currentView: {\n start: null,\n end: null,\n users: new Map(),\n },\n /**\n * store a list of existing event, to avoid storing them twice\n */\n existingEvents: new Set(),\n /**\n * store user data\n */\n usersData: new Map(),\n },\n getters,\n mutations,\n actions,\n});\n\nwhoami().then((me) => {\n store.commit(\"setWhoAmiI\", me);\n});\n\nif (null !== store.getters.getMainUser) {\n store.commit(\"showUserOnCalendar\", {\n ranges: true,\n remotes: true,\n user: store.getters.getMainUser,\n });\n}\n\nfor (let u of store.state.activity.users) {\n store.commit(\"showUserOnCalendar\", {\n ranges: false,\n remotes: false,\n user: u,\n });\n}\n\nprepareLocations(store);\n\nexport default store;\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Invite/Answer.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'payload' is defined but never used.", + "line": 95, + "column": 13, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 95, + "endColumn": 20 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reactive' is defined but never used.", + "line": 224, + "column": 10, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 224, + "endColumn": 18 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'DropArg' is defined but never used.", + "line": 230, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 230, + "endColumn": 12 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'t' is assigned a value but never used.", + "line": 251, + "column": 9, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 251, + "endColumn": 10 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'arg' is defined but never used.", + "line": 356, + "column": 32, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 356, + "endColumn": 35 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'changedEvent' is assigned a value but never used.", + "line": 434, + "column": 11, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 434, + "endColumn": 23 + }, + { + "ruleId": "@typescript-eslint/ban-ts-comment", + "severity": 2, + "message": "Use \"@ts-expect-error\" instead of \"@ts-ignore\", as \"@ts-ignore\" will do nothing if the following line is error-free.", + "line": 444, + "column": 5, + "nodeType": "Line", + "messageId": "tsIgnoreInsteadOfExpectError", + "endLine": 444, + "endColumn": 72, + "suggestions": [ + { + "messageId": "replaceTsIgnoreWithTsExpectError", + "fix": { + "range": [ + 15044, + 15111 + ], + "text": "// @ts-expect-error TS does not recognize the target. But it does exists." + }, + "desc": "Replace \"@ts-ignore\" with \"@ts-expect-error\"." + } + ] + } + ], + "suppressedMessages": [], + "errorCount": 6, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/Components/EditLocation.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'_' is defined but never used.", + "line": 77, + "column": 16, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 77, + "endColumn": 17 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'_' is defined but never used.", + "line": 82, + "column": 30, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 82, + "endColumn": 31 + }, + { + "ruleId": "@typescript-eslint/no-explicit-any", + "severity": 2, + "message": "Unexpected any. Specify a different type.", + "line": 82, + "column": 33, + "nodeType": "TSAnyKeyword", + "messageId": "unexpectedAny", + "endLine": 82, + "endColumn": 36, + "suggestions": [ + { + "messageId": "suggestUnknown", + "fix": { + "range": [ + 2589, + 2592 + ], + "text": "unknown" + }, + "desc": "Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct." + }, + { + "messageId": "suggestNever", + "fix": { + "range": [ + 2589, + 2592 + ], + "text": "never" + }, + "desc": "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of." + } + ] + } + ], + "suppressedMessages": [], + "errorCount": 3, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 108, + "column": 47, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 108, + "endColumn": 53 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"users\" prop.", + "line": 148, + "column": 29, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 148, + "endColumn": 54 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"calendarEvents\" prop.", + "line": 151, + "column": 29, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 151, + "endColumn": 72 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 154, + "column": 59, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 154, + "endColumn": 65 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"users\" prop.", + "line": 155, + "column": 41, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 155, + "endColumn": 63 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 164, + "column": 63, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 164, + "endColumn": 69 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"calendarEvents\" prop.", + "line": 185, + "column": 57, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 186, + "endColumn": 86 + }, + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 218, + "column": 17, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 230, + "endColumn": 18 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"calendarEvents\" prop.", + "line": 235, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 237, + "endColumn": 14 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"users\" prop.", + "line": 240, + "column": 13, + "nodeType": "CallExpression", + "messageId": "unexpectedMutation", + "endLine": 240, + "endColumn": 44 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"users\" prop.", + "line": 246, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 248, + "endColumn": 14 + } + ], + "suppressedMessages": [], + "errorCount": 11, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "messages": [ + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 8, + "column": 3, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 10, + "endColumn": 4 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'decryptError' is assigned a value but never used.", + "line": 30, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 30, + "endColumn": 17 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'fetchError' is assigned a value but never used.", + "line": 31, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 31, + "endColumn": 15 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'key' is defined but never used.", + "line": 32, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 32, + "endColumn": 8 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'url' is defined but never used.", + "line": 33, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 33, + "endColumn": 8 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'error' is defined but never used.", + "line": 87, + "column": 13, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 87, + "endColumn": 18 + } + ], + "suppressedMessages": [], + "errorCount": 6, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "var mime = require(\"mime\");\n\nvar algo = \"AES-CBC\";\n\nvar initializeButtons = (root) => {\n var buttons = root.querySelectorAll(\"a[data-download-button]\");\n\n for (let i = 0; i < buttons.length; i++) {\n initialize(buttons[i]);\n }\n};\n\nvar initialize = (button) => {\n button.addEventListener(\"click\", onClick);\n};\n\nvar onClick = (e) => download(e.target);\n\nvar download = (button) => {\n var keyData = JSON.parse(button.dataset.key),\n ivData = JSON.parse(button.dataset.iv),\n iv = new Uint8Array(ivData),\n urlGenerator = button.dataset.tempUrlGetGenerator,\n hasFilename = \"filename\" in button.dataset,\n filename = button.dataset.filename,\n labelPreparing = button.dataset.labelPreparing,\n labelReady = button.dataset.labelReady,\n mimeType = button.dataset.mimeType,\n extension = mime.getExtension(mimeType),\n decryptError = \"Error while decrypting file\",\n fetchError = \"Error while fetching file\",\n key,\n url;\n\n button.textContent = labelPreparing;\n\n window\n .fetch(urlGenerator)\n .then((r) => {\n if (r.ok) {\n return r.json();\n } else {\n throw new Error(\n \"error while downloading url \" + r.status + \" \" + r.statusText,\n );\n }\n })\n .then((data) => {\n return window.fetch(data.url);\n })\n .then((response) => {\n if (response.ok) {\n return response.arrayBuffer();\n }\n throw new Error(response.status + response.statusText);\n })\n .then((buffer) => {\n if (keyData.alg !== undefined) {\n return window.crypto.subtle\n .importKey(\"jwk\", keyData, { name: algo, iv: iv }, false, [\"decrypt\"])\n .then((key) => {\n return window.crypto.subtle.decrypt(\n { name: algo, iv: iv },\n key,\n buffer,\n );\n });\n }\n return Promise.resolve(buffer);\n })\n .then((decrypted) => {\n var blob = new Blob([decrypted], { type: mimeType }),\n url = window.URL.createObjectURL(blob);\n button.href = url;\n button.target = \"_blank\";\n button.type = mimeType;\n button.textContent = labelReady;\n if (hasFilename) {\n button.download = filename;\n if (extension !== false) {\n button.download = button.download + \".\" + extension;\n }\n }\n button.removeEventListener(\"click\", onClick);\n button.click();\n })\n .catch((error) => {\n button.textContent = \"\";\n button.appendChild(\n document.createTextNode(\"error while handling decrypted file\"),\n );\n });\n};\n\nwindow.addEventListener(\"load\", function (e) {\n initializeButtons(e.target);\n});\n\nexport { initializeButtons, download };\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "messages": [ + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 39, + "column": 3, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 41, + "endColumn": 4 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'files' is defined but never used.", + "line": 44, + "column": 40, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 44, + "endColumn": 45 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'zoneData' is defined but never used.", + "line": 103, + "column": 34, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 103, + "endColumn": 42 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'file' is defined but never used.", + "line": 141, + "column": 27, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 141, + "endColumn": 31 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'response' is defined but never used.", + "line": 154, + "column": 43, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 154, + "endColumn": 51 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'file' is defined but never used.", + "line": 159, + "column": 39, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 159, + "endColumn": 43 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'file' is defined but never used.", + "line": 165, + "column": 41, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 165, + "endColumn": 45 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'zoneData' is defined but never used.", + "line": 239, + "column": 30, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 239, + "endColumn": 38 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'removeDownloadButton' is assigned a value but never used.", + "line": 301, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 301, + "endColumn": 27 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'zoneData' is defined but never used.", + "line": 301, + "column": 37, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 301, + "endColumn": 45 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 348, + "column": 43, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 348, + "endColumn": 44 + } + ], + "suppressedMessages": [], + "errorCount": 11, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "var algo = \"AES-CBC\";\nimport Dropzone from \"dropzone\";\nimport { initializeButtons } from \"./downloader.js\";\n\n/**\n *\n * define a dropzone for chill usage\n *\n * An event is launched when dropzone is initialize, allowing to customize events\n * on dropzone :\n *\n * ```\n * window.addEventListener(\"chill_dropzone_initialized\", (e) => {\n * // do something with dropzone:\n * e.detail.dropzone.on(\"success\", (e) => {\n * // see https://www.dropzonejs.com/#event-success\n * });\n * });\n * ```\n *\n */\n\n// load css\n//require('dropzone/dist/basic.css');\nrequire(\"dropzone/dist/dropzone.css\");\nrequire(\"./index.scss\");\n//\n\n// disable dropzone autodiscover\nDropzone.autoDiscover = false;\n\nvar keyDefinition = {\n name: algo,\n length: 256,\n};\n\nvar searchForZones = function (root) {\n var zones = root.querySelectorAll(\"div[data-stored-object]\");\n for (let i = 0; i < zones.length; i++) {\n initialize(zones[i]);\n }\n};\n\nvar getUploadUrl = function (zoneData, files) {\n var generateTempUrlPost = zoneData.zone.querySelector(\n \"input[data-async-file-upload]\",\n ).dataset.generateTempUrlPost,\n oReq = new XMLHttpRequest();\n // arg, dropzone, you cannot handle async upload...\n oReq.open(\"GET\", generateTempUrlPost, false);\n oReq.send();\n\n if (oReq.readyState !== XMLHttpRequest.DONE) {\n throw new Error(\"Error while fetching url to upload\");\n }\n\n zoneData.params = JSON.parse(oReq.responseText);\n\n return zoneData.params.url;\n};\n\nvar encryptFile = function (originalFile, zoneData, done) {\n var iv = crypto.getRandomValues(new Uint8Array(16)),\n reader = new FileReader(),\n jsKey,\n rawKey;\n\n zoneData.originalType = originalFile.type;\n\n reader.onload = (e) => {\n window.crypto.subtle\n .generateKey(keyDefinition, true, [\"encrypt\", \"decrypt\"])\n .then((key) => {\n jsKey = key;\n\n // we register the key somwhere\n return window.crypto.subtle.exportKey(\"jwk\", key);\n })\n .then((exportedKey) => {\n rawKey = exportedKey;\n\n // we start encryption\n return window.crypto.subtle.encrypt(\n { name: algo, iv: iv },\n jsKey,\n e.target.result,\n );\n })\n .then((encrypted) => {\n zoneData.crypto = {\n jsKey: jsKey,\n rawKey: rawKey,\n iv: iv,\n };\n\n done(new File([encrypted], zoneData.suffix));\n });\n };\n\n reader.readAsArrayBuffer(originalFile);\n};\n\nvar addBelowButton = (btn, zone, zoneData) => {\n let belowZone = zone.querySelector(\".chill-dropzone__below-zone\");\n\n if (belowZone === null) {\n belowZone = document.createElement(\"div\");\n belowZone.classList.add(\"chill-dropzone__below-zone\");\n zone.appendChild(belowZone);\n }\n\n belowZone.appendChild(btn);\n};\n\nvar createZone = (zone, zoneData) => {\n var created = document.createElement(\"div\"),\n initMessage = document.createElement(\"div\"),\n initContent = zone.dataset.labelInitMessage,\n dropzoneI;\n\n created.classList.add(\"dropzone\");\n initMessage.classList.add(\"dz-message\");\n initMessage.appendChild(document.createTextNode(initContent));\n console.log(Dropzone);\n dropzoneI = new Dropzone(created, {\n url: function (files) {\n return getUploadUrl(zoneData, files);\n },\n dictDefaultMessage: zone.dataset.dictDefaultMessage,\n dictFileTooBig: zone.dataset.dictFileTooBig,\n dictRemoveFile: zone.dataset.dictRemoveFile,\n dictMaxFilesExceeded: zone.dataset.dictMaxFilesExceeded,\n dictCancelUpload: zone.dataset.dictCancelUpload,\n dictCancelUploadConfirm: zone.dataset.dictCancelUploadConfirm,\n dictUploadCanceled: zone.dataset.dictUploadCanceled,\n maxFiles: 1,\n addRemoveLinks: true,\n transformFile: function (file, done) {\n encryptFile(file, zoneData, done);\n },\n renameFile: function (file) {\n return zoneData.suffix;\n },\n });\n\n dropzoneI.on(\"sending\", function (file, xhr, formData) {\n formData.append(\"redirect\", zoneData.params.redirect);\n formData.append(\"max_file_size\", zoneData.params.max_file_size);\n formData.append(\"max_file_count\", zoneData.params.max_file_count);\n formData.append(\"expires\", zoneData.params.expires);\n formData.append(\"signature\", zoneData.params.signature);\n });\n\n dropzoneI.on(\"success\", function (file, response) {\n zoneData.currentFile = file;\n storeDataInForm(zone, zoneData);\n });\n\n dropzoneI.on(\"addedfile\", function (file) {\n if (zoneData.hasOwnProperty(\"currentFile\")) {\n dropzoneI.removeFile(zoneData.currentFile);\n }\n });\n\n dropzoneI.on(\"removedfile\", function (file) {\n removeDataInForm(zone, zoneData);\n });\n\n zone.insertBefore(created, zone.firstChild);\n\n let event = new CustomEvent(\"chill_dropzone_initialized\", {\n detail: {\n dropzone: dropzoneI,\n zoneData: zoneData,\n },\n });\n window.dispatchEvent(event);\n};\n\nvar initialize = function (zone) {\n var allowRemove = zone.dataset.allowRemove,\n zoneData = {\n zone: zone,\n suffix: createFilename(),\n allowRemove: allowRemove,\n old: null,\n };\n if (hasDataInForm(zone, zoneData)) {\n insertRemoveButton(zone, zoneData);\n insertDownloadButton(zone, zoneData);\n } else {\n createZone(zone, zoneData);\n }\n};\n\nvar createFilename = () => {\n var text = \"\";\n var possible =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n\n for (let i = 0; i < 7; i++) {\n text += possible.charAt(Math.floor(Math.random() * possible.length));\n }\n\n return text;\n};\n\nvar storeDataInForm = (zone, zoneData) => {\n var inputKey = zone.querySelector(\"input[data-stored-object-key]\"),\n inputIv = zone.querySelector(\"input[data-stored-object-iv]\"),\n inputObject = zone.querySelector(\"input[data-async-file-upload]\"),\n inputType = zone.querySelector(\"input[data-async-file-type]\");\n inputKey.value = JSON.stringify(zoneData.crypto.rawKey);\n inputIv.value = JSON.stringify(Array.from(zoneData.crypto.iv));\n inputType.value = zoneData.originalType;\n inputObject.value = zoneData.params.prefix + zoneData.suffix;\n\n insertDownloadButton(zone);\n};\n\nconst restoreDataInForm = (zone, zoneData) => {\n var inputKey = zone.querySelector(\"input[data-stored-object-key]\"),\n inputIv = zone.querySelector(\"input[data-stored-object-iv]\"),\n inputObject = zone.querySelector(\"input[data-async-file-upload]\"),\n inputType = zone.querySelector(\"input[data-async-file-type]\");\n if (zoneData.old === null) {\n console.log(\"should not have restored data\");\n return;\n }\n\n inputKey.value = zoneData.old.key;\n inputIv.value = zoneData.old.iv;\n inputType.value = zoneData.old.type;\n inputObject.value = zoneData.old.obj;\n\n insertDownloadButton(zone);\n};\n\nconst hasDataInForm = (zone, zoneData) => {\n var inputObject = zone.querySelector(\"input[data-async-file-upload]\");\n return inputObject.value.length > 0;\n};\n\nvar removeDataInForm = (zone, zoneData) => {\n var inputKey = zone.querySelector(\"input[data-stored-object-key]\"),\n inputIv = zone.querySelector(\"input[data-stored-object-iv]\"),\n inputObject = zone.querySelector(\"input[data-async-file-upload]\"),\n inputType = zone.querySelector(\"input[data-async-file-type]\");\n // store data for future usage\n zoneData.old = {\n key: inputKey.value,\n iv: inputIv.value,\n obj: inputObject.value,\n type: inputType.value,\n };\n // set blank values\n inputKey.value = \"\";\n inputIv.value = \"\";\n inputType.value = \"\";\n inputObject.value = \"\";\n\n insertDownloadButton(zone);\n};\n\nvar insertRemoveButton = (zone, zoneData) => {\n var removeButton = document.createElement(\"a\"),\n cancelButton = document.createElement(\"a\"),\n labelRemove = zone.dataset.dictRemove,\n labelCancel = \"Restaurer\";\n removeButton.classList.add(\"btn\", \"btn-delete\");\n removeButton.textContent = labelRemove;\n\n cancelButton.classList.add(\"btn\", \"btn-cancel\");\n cancelButton.textContent = labelCancel;\n\n removeButton.addEventListener(\"click\", (e) => {\n e.preventDefault();\n if (zoneData.allowRemove === \"true\") {\n removeDataInForm(zone, zoneData);\n cancelButton.addEventListener(\"click\", (e) => {\n e.preventDefault();\n\n restoreDataInForm(zone, zoneData);\n\n cancelButton.remove();\n zone.querySelector(\".dropzone\").remove();\n\n initialize(zone);\n });\n }\n addBelowButton(cancelButton, zone, zoneData);\n //zone.appendChild(cancelButton);\n removeButton.remove();\n createZone(zone, zoneData);\n });\n\n addBelowButton(removeButton, zone, zoneData);\n // zone.appendChild(removeButton);\n};\n\nconst removeDownloadButton = (zone, zoneData) => {\n var existingButtons = zone.querySelectorAll(\"a[data-download-button]\");\n // remove existing\n existingButtons.forEach(function (b) {\n b.remove();\n });\n};\n\nvar insertDownloadButton = (zone, zoneData) => {\n var existingButtons = zone.querySelectorAll(\"a[data-download-button]\"),\n newButton = document.createElement(\"a\"),\n inputKey = zone.querySelector(\"input[data-stored-object-key]\"),\n inputIv = zone.querySelector(\"input[data-stored-object-iv]\"),\n inputObject = zone.querySelector(\"input[data-async-file-upload]\"),\n inputType = zone.querySelector(\"input[data-async-file-type]\"),\n labelPreparing = zone.dataset.labelPreparing,\n labelQuietButton = zone.dataset.labelQuietButton,\n labelReady = zone.dataset.labelReady,\n tempUrlGenerator = zone.dataset.tempUrlGenerator,\n tempUrlGeneratorParams = new URLSearchParams();\n // remove existing\n existingButtons.forEach(function (b) {\n b.remove();\n });\n\n if (inputObject.value === \"\") {\n return;\n }\n\n tempUrlGeneratorParams.append(\"object_name\", inputObject.value);\n\n newButton.dataset.downloadButton = true;\n newButton.dataset.key = inputKey.value;\n newButton.dataset.iv = inputIv.value;\n newButton.dataset.mimeType = inputType.value;\n newButton.dataset.labelPreparing = labelPreparing;\n newButton.dataset.labelReady = labelReady;\n newButton.dataset.tempUrlGetGenerator =\n tempUrlGenerator + \"?\" + tempUrlGeneratorParams.toString();\n newButton.classList.add(\"btn\", \"btn-download\", \"dz-bt-below-dropzone\");\n newButton.textContent = labelQuietButton;\n\n addBelowButton(newButton, zone, zoneData);\n //zone.appendChild(newButton);\n initializeButtons(zone);\n};\n\nwindow.addEventListener(\"load\", function (e) {\n searchForZones(document);\n});\n\nwindow.addEventListener(\"collection-add-entry\", function (e) {\n searchForZones(e.detail.entry);\n});\n\nexport { searchForZones };\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DropFileWidget/DropFileWidget.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'ref' is defined but never used.", + "line": 3, + "column": 20, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 3, + "endColumn": 23 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'Ref' is defined but never used.", + "line": 3, + "column": 25, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 3, + "endColumn": 28 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/ConvertButton.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'download_and_decrypt_doc' is defined but never used.", + "line": 11, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 11, + "endColumn": 29 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'mime' is defined but never used.", + "line": 14, + "column": 8, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 14, + "endColumn": 12 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'StoredObjectCreated' is defined but never used.", + "line": 16, + "column": 24, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 16, + "endColumn": 43 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reset_pending' is assigned a value but never used.", + "line": 50, + "column": 11, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 50, + "endColumn": 24 + } + ], + "suppressedMessages": [], + "errorCount": 4, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/DownloadButton.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'onMounted' is defined but never used.", + "line": 25, + "column": 35, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 25, + "endColumn": 44 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'button' is assigned a value but never used.", + "line": 63, + "column": 11, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 63, + "endColumn": 17 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'timer' is assigned a value but never used.", + "line": 110, + "column": 11, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 110, + "endColumn": 16 + } + ], + "suppressedMessages": [], + "errorCount": 3, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/WopiEditButton.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'WopiEditButton' is defined but never used.", + "line": 15, + "column": 8, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 15, + "endColumn": 22 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'StoredObjectCreated' is defined but never used.", + "line": 19, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 19, + "endColumn": 24 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/_components/AddAsyncUpload.vue", + "messages": [ + { + "ruleId": "vue/require-valid-default-prop", + "severity": 2, + "message": "Type of the default value for 'options' prop must be a function.", + "line": 117, + "column": 22, + "nodeType": "ObjectExpression", + "messageId": "invalidType", + "endLine": 121, + "endColumn": 14 + }, + { + "ruleId": "vue/require-valid-default-prop", + "severity": 2, + "message": "Type of the default value for 'btnClasses' prop must be a function.", + "line": 125, + "column": 22, + "nodeType": "ObjectExpression", + "messageId": "invalidType", + "endLine": 128, + "endColumn": 14 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillJobBundle/src/Resources/public/module/cv_edit/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'a' is assigned a value but never used.", + "line": 7, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 7, + "endColumn": 8 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 11, + "column": 28, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 11, + "endColumn": 33 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'_e' is defined but never used.", + "line": 32, + "column": 43, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 32, + "endColumn": 45 + } + ], + "suppressedMessages": [], + "errorCount": 3, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { ShowHide } from \"ShowHide/show_hide.js\";\n// listen to adding of formation and register a show hide\n\nvar make_show_hide = function (entry) {\n let obtained = entry.querySelector(\"[data-diploma-obtained]\"),\n reconnue = entry.querySelector(\"[data-diploma-reconnue]\");\n var a = new ShowHide({\n load_event: null,\n froms: [obtained],\n container: [reconnue],\n test: function (froms, event) {\n for (let f of froms.values()) {\n for (let input of f.querySelectorAll(\"input\").values()) {\n if (input.value === \"non-fr\") {\n return input.checked;\n }\n }\n }\n\n return false;\n },\n });\n};\n\nwindow.addEventListener(\"collection-add-entry\", function (e) {\n if (e.detail.collection.dataset.collectionName === \"formations\") {\n make_show_hide(e.detail.entry);\n }\n});\n\n// starting the formation on load\nwindow.addEventListener(\"load\", function (_e) {\n let formations = document.querySelectorAll(\"[data-formation-entry]\");\n for (let f of formations.values()) {\n make_show_hide(f);\n }\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillJobBundle/src/Resources/public/module/dispositif_edit/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 15, + "column": 26, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 15, + "endColumn": 31 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 30, + "column": 26, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 30, + "endColumn": 31 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 47, + "column": 26, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 47, + "endColumn": 31 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 59, + "column": 26, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 59, + "endColumn": 31 + } + ], + "suppressedMessages": [], + "errorCount": 4, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { ShowHide } from \"ShowHide/show_hide.js\";\n\nvar div_accompagnement = document.getElementById(\"form_accompagnement\"),\n div_accompagnement_rqth = document.getElementById(\"form_accompagnement_rqth\"),\n div_accompagnement_comment = document.getElementById(\n \"form_accompagnement_comment\",\n ),\n div_caf_id = document.getElementById(\"cafId\"),\n div_caf_inscription_date = document.getElementById(\"cafInscriptionDate\"),\n div_neet_eligibilite = document.getElementById(\"neetEligibilite\"),\n div_neet_commission_date = document.getElementById(\"neetCommissionDate\");\n// faire apparaitre / disparaitre RQTH si RQTH coché\nnew ShowHide({\n froms: [div_accompagnement],\n test: function (froms, event) {\n for (let el of froms.values()) {\n for (let input of el.querySelectorAll(\"input\").values()) {\n if (input.value === \"rqth\") {\n return input.checked;\n }\n }\n }\n },\n container: [div_accompagnement_rqth],\n});\n\n// faire apparaitre / disparaitre commetnaire si coché\nnew ShowHide({\n froms: [div_accompagnement],\n test: function (froms, event) {\n for (let el of froms.values()) {\n for (let input of el.querySelectorAll(\"input\").values()) {\n if (input.value === \"autre\") {\n return input.checked;\n }\n }\n }\n\n return false;\n },\n container: [div_accompagnement_comment],\n});\n\n// faire apparaitre cafInscriptionDate seulement si cafID est rempli\nnew ShowHide({\n froms: [div_caf_id],\n test: function (froms, event) {\n for (let el of froms.values()) {\n return el.querySelector(\"input\").value !== \"\";\n }\n },\n container: [div_caf_inscription_date],\n event_name: \"input\",\n});\n\n// faire apparaitre date de commission neet seulement si eligible\nnew ShowHide({\n froms: [div_neet_eligibilite],\n test: function (froms, event) {\n for (let el of froms.values()) {\n for (let input of el.querySelectorAll(\"input\").values()) {\n if (input.value === \"oui\") {\n return input.checked;\n }\n }\n }\n\n return false;\n },\n container: [div_neet_commission_date],\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillJobBundle/src/Resources/public/module/immersion_edit/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 8, + "column": 26, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 8, + "endColumn": 31 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { ShowHide } from \"ShowHide/show_hide.js\";\n\nvar div_objectifs = document.getElementById(\"objectifs\"),\n div_objectifs_autre = document.getElementById(\"objectifsAutre\");\nnew ShowHide({\n froms: [div_objectifs],\n container: [div_objectifs_autre],\n test: function (froms, event) {\n for (let el of froms.values()) {\n for (let input of el.querySelectorAll(\"input\").values()) {\n if (input.value === \"autre\") {\n return input.checked;\n }\n }\n }\n },\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'moment' is defined but never used.", + "line": 3, + "column": 11, + "nodeType": "Program", + "messageId": "unusedVar", + "endLine": 3, + "endColumn": 17 + }, + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 241, + "column": 17, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 249, + "endColumn": 18 + }, + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 282, + "column": 21, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 290, + "endColumn": 22 + }, + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 315, + "column": 7, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 317, + "endColumn": 8 + }, + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 319, + "column": 7, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 321, + "endColumn": 8 + }, + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 352, + "column": 5, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 358, + "endColumn": 6 + } + ], + "suppressedMessages": [], + "errorCount": 6, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "/* jslint vars: true */\n/*jslint indent: 4 */\n/* global moment, $, window */\n\"use strict\";\n\nvar chill = (function () {\n /**\n * Display an alert message when the user wants to leave a page containing a given form\n * in a given state.\n *\n * The action of displaying the form be parametrised as :\n * - always display the alert message when leaving\n * - only display the alert message when the form contains some modified fields.\n *\n * @param{string} form_id An identification string of the form\n * @param{string} alert_message The alert message to display\n * @param{boolean} check_unsaved_data If true display the alert message only when the form\n * contains some modified fields otherwise always display the alert when leaving\n * @return nothing\n */\n function _generalDisplayAlertWhenLeavingForm(\n form_id,\n alert_message,\n check_unsaved_data,\n ) {\n var form_submitted = false;\n var unsaved_data = false;\n\n $(form_id)\n .submit(function () {\n form_submitted = true;\n })\n .on(\"reset\", function () {\n unsaved_data = false;\n });\n\n $.each($(form_id).find(\":input\"), function (i, e) {\n $(e).change(function () {\n unsaved_data = true;\n });\n });\n\n $(window).bind(\"beforeunload\", function () {\n if (!form_submitted && (unsaved_data || !check_unsaved_data)) {\n return alert_message;\n }\n });\n }\n\n /**\n * Mark the choices \"not specified\" as check by default.\n *\n * This function apply to `custom field choices` when the `required`\n * option is false and `expanded` is true (checkboxes or radio buttons).\n *\n * @param{string} choice_name the name of the input\n */\n function checkNullValuesInChoices(choice_name) {\n var choices;\n choices = $(\"input[name='\" + choice_name + \"']:checked\");\n if (choices.size() === 0) {\n $.each($(\"input[name='\" + choice_name + \"']\"), function (i, e) {\n if (e.value === \"\") {\n e.checked = true;\n }\n });\n }\n }\n\n /**\n * Display an alert message when the user wants to leave a page containing a given\n * modified form.\n *\n * @param{string} form_id An identification string of the form\n * @param{string} alert_message The alert message to display\n * @return nothing\n */\n function displayAlertWhenLeavingModifiedForm(form_id, alert_message) {\n _generalDisplayAlertWhenLeavingForm(form_id, alert_message, true);\n }\n\n /**\n * Display an alert message when the user wants to leave a page containing a given\n * form that was not submitted.\n *\n * @param{string} form_id An identification string of the form\n * @param{string} alert_message The alert message to display\n * @return nothing\n */\n function displayAlertWhenLeavingUnsubmittedForm(form_id, alert_message) {\n _generalDisplayAlertWhenLeavingForm(form_id, alert_message, false);\n }\n\n /* Enable the following behavior : when the user change the value\n of an other field, its checkbox is checked.\n */\n function checkOtherValueOnChange() {\n $(\".input-text-other-value\").each(function () {\n $(this).change(function () {\n var checkbox = $(this)\n .parent()\n .find(\"input[type=checkbox][value=_other]\")[0];\n $(checkbox).prop(\"checked\", $(this).val() !== \"\");\n });\n });\n }\n\n /**\n * Create an interraction between two select element (the parent and the\n * child) of a given form : each parent option has a category, the\n * child select only display options that have the same category of the\n * parent optionn\n *\n * The parent must have the class \"chill-category-link-parent\".\n *\n * The children must have the class \"chill-category-link-child\". Each option\n * of the parent must have the attribute `data-link-category`, with the value of\n * the connected option in parent.\n *\n * Example :\n *\n * ```html\n * \n *\n * \n * ```\n *\n * TODO ECRIRE LA DOC METTRE LES TESTS DANS git :\n * tester que init est ok :\n - quand vide\n - quand choix\n * tester que quand sélection\n - quand vide\n - quand choix\n */\n function categoryLinkParentChildSelect() {\n var forms_to_link = $(\"form:has(select.chill-category-link-parent)\");\n\n forms_to_link.each(function (i, form_selector) {\n var form = $(form_selector),\n parent_multiple;\n form.old_category = null;\n form.link_parent = $(form).find(\".chill-category-link-parent\");\n form.link_child = $(form).find(\".chill-category-link-child\");\n\n // check if the parent allow multiple or single results\n parent_multiple = $(form)\n .find(\".chill-category-link-parent\")\n .get(0).multiple;\n // if we use select2, parent_multiple will be `undefined`\n if (typeof parent_multiple == \"undefined\") {\n // currently, I do not know how to check if multiple using select2.\n // we suppose that multiple is false (old behaviour)\n parent_multiple = false;\n }\n\n $(form.link_parent).addClass(\"select2\");\n $(form.link_parant).select2({ allowClear: true }); // it is weird: when I fix the typo here, the whole stuff does not work anymore...\n\n if (parent_multiple == false) {\n form.old_category = null;\n if ($(form.link_parent).select2(\"data\") !== null) {\n form.old_category = $(form.link_parent).select2(\n \"data\",\n ).element[0].dataset.linkCategory;\n }\n\n $(form.link_child)\n .find(\"option\")\n .each(function (i, e) {\n if (\n (!$(e).data(\"link-category\") ||\n $(e).data(\"link-category\") == form.old_category) &&\n (!$(e).data(\"link-categories\") ||\n form.old_category in $(e).data(\"link-categories\").split(\",\"))\n ) {\n $(e).show();\n // here, we should handle the optgroup\n } else {\n $(e).hide();\n // here, we should handle the optgroup\n }\n });\n\n form.link_parent.change(function () {\n var new_category = $(form.link_parent).select2(\"data\").element[0]\n .dataset.linkCategory;\n if (new_category != form.old_category) {\n $(form.link_child)\n .find(\"option\")\n .each(function (i, e) {\n if (\n (!$(e).data(\"link-category\") ||\n $(e).data(\"link-category\") == new_category) &&\n (!$(e).data(\"link-categories\") ||\n new_category in $(e).data(\"link-categories\").split(\",\"))\n ) {\n $(e).show();\n // here, we should handle the optgroup\n } else {\n $(e).hide();\n // here, we should handle the opgroup\n }\n });\n $(form.link_child).find(\"option\")[0].selected = true;\n form.old_category = new_category;\n }\n });\n } else {\n var i = 0,\n selected_items = $(form.link_parent).find(\":selected\");\n\n form.old_categories = [];\n for (i = 0; i < selected_items.length; i++) {\n form.old_categories.push(selected_items[i].value);\n }\n\n $(form.link_child)\n .find(\"option\")\n .each(function (i, e) {\n var visible;\n if (form.old_categories.indexOf(e.dataset.linkCategory) != -1) {\n $(e).show();\n if (e.parentNode instanceof HTMLOptGroupElement) {\n $(e.parentNode).show();\n }\n } else {\n $(e).hide();\n if (e.parentNode instanceof HTMLOptGroupElement) {\n // we check if the other options are visible.\n visible = false;\n for (var l = 0; l < e.parentNode.children.length; l++) {\n if (\n window\n .getComputedStyle(e.parentNode.children[l])\n .getPropertyValue(\"display\") != \"none\"\n ) {\n visible = true;\n }\n }\n // if any options are visible, we hide the optgroup\n if (visible == false) {\n $(e.parentNode).hide();\n }\n }\n }\n });\n\n form.link_parent.change(function () {\n var new_categories = [],\n selected_items = $(form.link_parent).find(\":selected\"),\n visible;\n for (i = 0; i < selected_items.length; i++) {\n new_categories.push(selected_items[i].value);\n }\n\n if (new_categories != form.old_categories) {\n $(form.link_child)\n .find(\"option\")\n .each(function (i, e) {\n if (new_categories.indexOf(e.dataset.linkCategory) != -1) {\n $(e).show();\n // if parent is an opgroup, we show it\n if (e.parentNode instanceof HTMLOptGroupElement) {\n $(e.parentNode).show();\n }\n } else {\n $(e).hide();\n // we check if the parent is an optgroup\n if (e.parentNode instanceof HTMLOptGroupElement) {\n // we check if other options are visible\n visible = false;\n for (var l = 0; l < e.parentNode.children.length; l++) {\n if (\n window\n .getComputedStyle(e.parentNode.children[l])\n .getPropertyValue(\"display\") != \"none\"\n ) {\n visible = true;\n }\n }\n // if any options are visible, we hide the optgroup\n if (visible == false) {\n $(e.parentNode).hide();\n }\n }\n }\n });\n //$(form.link_child).find('option')[0].selected = true;\n form.old_categories = new_categories;\n }\n });\n }\n });\n }\n\n function _displayHideTargetWithCheckbox(checkbox) {\n var target = checkbox.dataset.displayTarget,\n hideableElements;\n\n hideableElements = document.querySelectorAll(\n '[data-display-show-hide=\"' + target + '\"]',\n );\n\n if (checkbox.checked) {\n for (let i = 0; i < hideableElements.length; i = i + 1) {\n hideableElements[i].style.display = \"unset\";\n }\n } else {\n for (let i = 0; i < hideableElements.length; i = i + 1) {\n hideableElements[i].style.display = \"none\";\n }\n }\n }\n\n /**\n * create an interaction between a checkbox and element to show if the\n * checkbox is checked, or hide if the checkbox is not checked.\n *\n * The checkbox must have the data `data-display-target` with an id,\n * and the parts to show/hide must have the data `data-display-show-hide`\n * with the same value.\n *\n * Example :\n *\n * ```\n * \n *\n *
\n * \n *
\n * ```\n *\n * Hint: for forms in symfony, you could use the `id` of the form element,\n * accessible through `{{ form.vars.id }}`. This id should be unique.\n *\n *\n * @returns {undefined}\n */\n function listenerDisplayCheckbox() {\n var elements = document.querySelectorAll(\"[data-display-target]\");\n\n for (let i = 0; i < elements.length; i = i + 1) {\n elements[i].addEventListener(\"change\", function (e) {\n _displayHideTargetWithCheckbox(e.target);\n });\n // initial display-hide\n _displayHideTargetWithCheckbox(elements[i]);\n }\n }\n\n return {\n checkOtherValueOnChange: checkOtherValueOnChange,\n displayAlertWhenLeavingModifiedForm: displayAlertWhenLeavingModifiedForm,\n displayAlertWhenLeavingUnsubmittedForm:\n displayAlertWhenLeavingUnsubmittedForm,\n checkNullValuesInChoices: checkNullValuesInChoices,\n categoryLinkParentChildSelect: categoryLinkParentChildSelect,\n listenerDisplayCheckbox: listenerDisplayCheckbox,\n };\n})();\n\nexport { chill };\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/chill/js/counter.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 28, + "column": 55, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 28, + "endColumn": 56 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "/**\n *\n * This script search for span.counter elements like\n * Il y a 4 notifications\n * and return\n * Il y a 4 notifications\n *\n */\nconst isNum = (v) => !isNaN(v);\n\nconst parseCounter = () => {\n document.querySelectorAll(\"span.counter\").forEach((el) => {\n let r = [];\n el.innerText\n .trim()\n .split(\" \")\n .forEach((w) => {\n if (isNum(w)) {\n r.push(`${w}`);\n } else {\n r.push(w);\n }\n });\n el.innerHTML = r.join(\" \");\n });\n};\n\nwindow.addEventListener(\"DOMContentLoaded\", function (e) {\n parseCounter();\n});\n\nexport { parseCounter };\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/lib/download-report/download-report.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'mime' is defined but never used.", + "line": 18, + "column": 8, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 18, + "endColumn": 12 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "/*\n * Copyright (C) 2018 Champs Libres Cooperative \n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\nimport mime from \"mime\";\n\nexport const download_report = (url, container) => {\n var download_text = container.dataset.downloadText,\n alias = container.dataset.alias;\n\n window\n .fetch(url, { credentials: \"same-origin\" })\n .then((response) => {\n if (!response.ok) {\n throw Error(response.statusText);\n }\n\n return response.blob();\n })\n .then((blob) => {\n var content = URL.createObjectURL(blob),\n link = document.createElement(\"a\"),\n type = blob.type,\n hasForcedType = \"mimeType\" in container.dataset,\n extension;\n\n if (hasForcedType) {\n // force a type\n type = container.dataset.mimeType;\n blob = new Blob([blob], { type: type });\n content = URL.createObjectURL(blob);\n }\n\n const extensions = new Map();\n extensions.set(\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n \"xlsx\",\n );\n extensions.set(\"application/vnd.oasis.opendocument.spreadsheet\", \"ods\");\n extensions.set(\"application/vnd.ms-excel\", \"xlsx\");\n extensions.set(\"text/csv\", \"csv\");\n extensions.set(\"text/csv; charset=utf-8\", \"csv\");\n\n extension = extensions.get(type);\n\n link.appendChild(document.createTextNode(download_text));\n link.classList.add(\"btn\", \"btn-action\");\n link.href = content;\n link.download = alias;\n if (extension !== false) {\n link.download = link.download + \".\" + extension;\n }\n container.innerHTML = \"\";\n container.appendChild(link);\n })\n .catch(function (error) {\n console.error(error);\n var problem_text = document.createTextNode(\"Problem during download\");\n\n container.replaceChild(problem_text, container.firstChild);\n });\n};\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/lib/select_interactive_loading/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 1, + "column": 43, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 1, + "endColumn": 44 + }, + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 5, + "column": 3, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 29, + "endColumn": 4 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "window.addEventListener(\"load\", function (e) {\n var postalCodes = document.querySelectorAll(\n \"[data-select-interactive-loading]\",\n );\n for (let i = 0; i < postalCodes.length; i++) {\n let searchUrl = postalCodes[i].dataset.searchUrl,\n noResultsLabel = postalCodes[i].dataset.noResultsLabel,\n errorLoadLabel = postalCodes[i].dataset.errorLoadLabel,\n searchingLabel = postalCodes[i].dataset.searchingLabel;\n $(postalCodes[i]).select2({\n allowClear: true,\n language: {\n errorLoading: function () {\n return errorLoadLabel;\n },\n noResults: function () {\n return noResultsLabel;\n },\n searching: function () {\n return searchingLabel;\n },\n },\n ajax: {\n url: searchUrl,\n dataType: \"json\",\n delay: 250,\n },\n });\n }\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/lib/tabs/tabs.js", + "messages": [ + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 19, + "column": 3, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 24, + "endColumn": 4 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'pane' is defined but never used.", + "line": 51, + "column": 30, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 51, + "endColumn": 34 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'tabs' is assigned a value but never used.", + "line": 77, + "column": 9, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 77, + "endColumn": 13 + } + ], + "suppressedMessages": [], + "errorCount": 3, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "/*\n * Remove active class on both elements: link and content\n */\nlet resetActive = function (links, contents) {\n for (items of [links, contents]) {\n items.forEach(function (item) {\n if (item.classList.contains(\"active\")) {\n item.classList.remove(\"active\");\n }\n });\n }\n};\n\n/*\n * Count links array and return rank of given link\n */\nlet countNewActive = function (links, link) {\n let rank = 0;\n for (let i = 0; i < links.length; ++i) {\n rank++;\n if (links[i] == link) {\n return rank;\n }\n }\n};\n\n/*\n * Set class active on both new elements: link and content\n */\nlet setNewActive = function (links, contents, rank) {\n if (!links[rank - 1]) {\n rank = 1;\n }\n link = links[rank - 1];\n\n link.classList.add(\"active\");\n\n count = 0;\n contents.forEach(function (pane) {\n count++;\n if (rank == count) {\n pane.classList.add(\"active\");\n }\n });\n};\n\n/*\n * Set height of content pane\n */\nlet setPaneHeight = function (contents) {\n contents.forEach(function (pane) {\n // let computedStyle = getComputedStyle(pane);\n // console.log(computedStyle.height);\n // comment prendre la hauteur d'une div masquée avec display:none\n });\n};\n\n/*\n * Check if links are defined in controller\n * If true, disable javascript listener\n */\nlet isLinkRef = function (link) {\n if (link.getAttribute(\"href\") == \"#\") {\n return false;\n }\n return true;\n};\n\n/*\n * Main function\n */\nwindow.addEventListener(\"load\", function () {\n tabParams.forEach(function (unit) {\n let tabPanel = document.querySelector(\"#\" + unit.id);\n if (tabPanel) {\n let nav = tabPanel.querySelector(\"nav\"),\n tabs = nav.querySelectorAll(\"ul.nav-tabs li.nav-item\"),\n links = nav.querySelectorAll(\"ul.nav-tabs li.nav-item a.nav-link\"),\n contents = tabPanel.querySelectorAll(\"div.tab-content div.tab-pane\");\n if (unit.type == \"pill\") {\n tabPanel.classList.add(\"pills\");\n }\n\n if (!unit.initPane) {\n unit.initPane = 1;\n }\n\n setPaneHeight(contents);\n\n // initial position\n setNewActive(links, contents, unit.initPane);\n\n // listen\n links.forEach(function (link) {\n if (isLinkRef(link) == false) {\n link.addEventListener(\"click\", function () {\n resetActive(links, contents);\n setNewActive(links, contents, countNewActive(links, link));\n });\n }\n });\n }\n });\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/module/blur/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 9, + "column": 32, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 9, + "endColumn": 33 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "require(\"./blur.scss\");\n\ndocument.querySelectorAll(\".confidential\").forEach(function (el) {\n let i = document.createElement(\"i\");\n const classes = [\"fa\", \"fa-eye-slash\", \"toggle-twig\"];\n i.classList.add(...classes);\n el.appendChild(i);\n\n const toggleBlur = function (e) {\n for (let child of el.children) {\n if (!child.classList.contains(\"toggle-twig\")) {\n child.classList.toggle(\"blur\");\n }\n }\n i.classList.toggle(\"fa-eye-slash\");\n i.classList.toggle(\"fa-eye\");\n };\n i.addEventListener(\"click\", toggleBlur);\n toggleBlur();\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'Dropdown' is defined but never used.", + "line": 8, + "column": 8, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 8, + "endColumn": 16 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'Modal' is defined but never used.", + "line": 9, + "column": 8, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 9, + "endColumn": 13 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'Collapse' is defined but never used.", + "line": 10, + "column": 8, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 10, + "endColumn": 16 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'carousel' is assigned a value but never used.", + "line": 27, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 27, + "endColumn": 13 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 34, + "column": 50, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 34, + "endColumn": 51 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'popoverList' is assigned a value but never used.", + "line": 62, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 62, + "endColumn": 18 + } + ], + "suppressedMessages": [], + "errorCount": 6, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "// Compile all bootstrap assets from nodes-modules\n//require('bootstrap/scss/bootstrap.scss')\n\n// Or compile bootstrap only enabled assets\nrequire(\"./bootstrap.scss\");\n\n// You can specify which plugins you need\nimport Dropdown from \"bootstrap/js/src/dropdown\";\nimport Modal from \"bootstrap/js/dist/modal\";\nimport Collapse from \"bootstrap/js/src/collapse\";\nimport Carousel from \"bootstrap/js/src/carousel\";\nimport Popover from \"bootstrap/js/src/popover\";\nimport \"bootstrap-icons/font/bootstrap-icons.css\";\n\n//\n// Carousel: ACHeaderSlider is a small slider used in banner of AccompanyingCourse Section\n// Initialize options, and show/hide controls in first/last slides\n//\nlet ACHeaderSlider = document.querySelector(\"#ACHeaderSlider\");\nif (ACHeaderSlider) {\n let controlPrev = ACHeaderSlider.querySelector(\n 'button[data-bs-slide=\"prev\"]',\n ),\n controlNext = ACHeaderSlider.querySelector('button[data-bs-slide=\"next\"]'),\n length = ACHeaderSlider.querySelectorAll(\".carousel-item\").length,\n last = length - 1,\n carousel = new Carousel(ACHeaderSlider, {\n interval: false,\n wrap: false,\n ride: false,\n keyboard: false,\n touch: true,\n });\n document.addEventListener(\"DOMContentLoaded\", (e) => {\n controlNext.classList.remove(\"visually-hidden\");\n });\n ACHeaderSlider.addEventListener(\"slid.bs.carousel\", (e) => {\n //console.log('from slide', e.direction, e.relatedTarget, e.from, e.to );\n switch (e.to) {\n case 0:\n controlPrev.classList.add(\"visually-hidden\");\n controlNext.classList.remove(\"visually-hidden\");\n break;\n case last:\n controlPrev.classList.remove(\"visually-hidden\");\n controlNext.classList.add(\"visually-hidden\");\n break;\n default:\n controlPrev.classList.remove(\"visually-hidden\");\n controlNext.classList.remove(\"visually-hidden\");\n }\n });\n}\n\n//\n// Popover: used in workflow breadcrumb,\n// (expected in: contextual help, notification-box, workflow-box )\n//\nconst triggerList = [].slice.call(\n document.querySelectorAll('[data-bs-toggle=\"popover\"]'),\n);\nconst popoverList = triggerList.map(function (el) {\n return new Popover(el, {\n html: true,\n });\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/module/disable-buttons/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 9, + "column": 43, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 9, + "endColumn": 44 + }, + { + "ruleId": "@typescript-eslint/prefer-for-of", + "severity": 2, + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "line": 10, + "column": 3, + "nodeType": "ForStatement", + "messageId": "preferForOf", + "endLine": 12, + "endColumn": 4 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "/**\n * Submit button(s) are disabled as soon as submit button is clicked and form is submitted.\n * ID 'create-form' must be added to submit forms.\n */\n\nvar form = document.getElementById(\"create-form\");\nvar submitButtons = document.querySelectorAll(\"[type=submit]\");\n\nform.addEventListener(\"submit\", function (e) {\n for (var i = 0; i < submitButtons.length; i++) {\n submitButtons[i].disabled = true;\n }\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/module/notification/toggle_read.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'NotificationReadAllToggle' is defined but never used.", + "line": 4, + "column": 8, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 4, + "endColumn": 33 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 8, + "column": 55, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 8, + "endColumn": 56 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport NotificationReadToggle from \"ChillMainAssets/vuejs/_components/Notification/NotificationReadToggle.vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport NotificationReadAllToggle from \"ChillMainAssets/vuejs/_components/Notification/NotificationReadAllToggle.vue\";\n\nconst i18n = _createI18n({});\n\nwindow.addEventListener(\"DOMContentLoaded\", function (e) {\n document\n .querySelectorAll(\".notification_toggle_read_status\")\n .forEach(function (el, i) {\n createApp({\n template: `\n `,\n components: {\n NotificationReadToggle,\n },\n data() {\n return {\n notificationId: parseInt(el.dataset.notificationId),\n buttonClass: el.dataset.buttonClass,\n buttonNoText: \"false\" === el.dataset.buttonText,\n showUrl: el.dataset.showButtonUrl,\n isRead: 1 === Number.parseInt(el.dataset.notificationCurrentIsRead),\n container: el.dataset.container,\n };\n },\n computed: {\n getContainer() {\n return document.querySelectorAll(`div.${this.container}`);\n },\n },\n methods: {\n onMarkRead() {\n if (typeof this.getContainer[i] !== \"undefined\") {\n this.getContainer[i].classList.replace(\"read\", \"unread\");\n } else {\n throw \"data-container attribute is missing\";\n }\n this.isRead = false;\n },\n onMarkUnread() {\n if (typeof this.getContainer[i] !== \"undefined\") {\n this.getContainer[i].classList.replace(\"unread\", \"read\");\n } else {\n throw \"data-container attribute is missing\";\n }\n this.isRead = true;\n },\n },\n })\n .use(i18n)\n .mount(el);\n });\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/module/pick-entity/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-expressions", + "severity": 2, + "message": "Expected an assignment or function call and instead saw an expression.", + "line": 26, + "column": 5, + "nodeType": "ExpressionStatement", + "messageId": "unusedExpression", + "endLine": 29, + "endColumn": 61 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 173, + "column": 57, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 173, + "endColumn": 58 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport PickEntity from \"ChillMainAssets/vuejs/PickEntity/PickEntity.vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { appMessages } from \"ChillMainAssets/vuejs/PickEntity/i18n\";\n\nconst i18n = _createI18n(appMessages);\n\nlet appsOnPage = new Map();\nlet appsPerInput = new Map();\n\nfunction loadDynamicPicker(element) {\n let apps = element.querySelectorAll('[data-module=\"pick-dynamic\"]');\n\n apps.forEach(function (el) {\n const isMultiple = parseInt(el.dataset.multiple) === 1,\n uniqId = el.dataset.uniqid,\n input = element.querySelector(\n '[data-input-uniqid=\"' + el.dataset.uniqid + '\"]',\n ),\n // the \"picked\" will always be an array, even if multiple is false\n picked = isMultiple\n ? JSON.parse(input.value)\n : input.value === \"[]\" || input.value === \"\"\n ? null\n : [JSON.parse(input.value)];\n (suggested = JSON.parse(el.dataset.suggested)),\n (as_id = parseInt(el.dataset.asId) === 1),\n (submit_on_adding_new_entity =\n parseInt(el.dataset.submitOnAddingNewEntity) === 1);\n label = el.dataset.label;\n\n if (!isMultiple) {\n if (input.value === \"[]\") {\n input.value = null;\n }\n }\n\n const app = createApp({\n template:\n \"',\n components: {\n PickEntity,\n },\n data() {\n return {\n multiple: isMultiple,\n types: JSON.parse(el.dataset.types),\n picked: picked === null ? [] : picked,\n uniqid: el.dataset.uniqid,\n suggested,\n as_id,\n submit_on_adding_new_entity,\n label,\n };\n },\n computed: {\n notPickedSuggested() {\n const pickedIds = new Set();\n for (const p of this.picked) {\n pickedIds.add(`${p.type}${p.id}`);\n }\n return this.suggested.filter(\n (e) => !pickedIds.has(`${e.type}${e.id}`),\n );\n },\n },\n methods: {\n addNewEntity({ entity }) {\n if (this.multiple) {\n if (\n !this.picked.some((el) => {\n return el.type === entity.type && el.id === entity.id;\n })\n ) {\n this.picked.push(entity);\n if (!as_id) {\n input.value = JSON.stringify(this.picked);\n } else {\n const ids = this.picked.map((el) => el.id);\n input.value = ids.join(\",\");\n }\n console.log(entity);\n }\n } else {\n if (\n !this.picked.some((el) => {\n return el.type === entity.type && el.id === entity.id;\n })\n ) {\n this.picked.splice(0, this.picked.length);\n this.picked.push(entity);\n if (!as_id) {\n input.value = JSON.stringify(this.picked[0]);\n } else {\n input.value = this.picked.map((el) => el.id);\n }\n }\n }\n\n if (this.submit_on_adding_new_entity) {\n input.form.submit();\n }\n },\n removeEntity({ entity }) {\n if (\n -1 ===\n this.suggested.findIndex(\n (e) => e.type === entity.type && e.id === entity.id,\n )\n ) {\n this.suggested.push(entity);\n }\n this.picked = this.picked.filter(\n (e) => !(e.type === entity.type && e.id === entity.id),\n );\n if (this.multiple) {\n input.value = JSON.stringify(this.picked);\n } else {\n input.value = \"\";\n }\n },\n },\n })\n .use(i18n)\n .mount(el);\n\n appsOnPage.set(uniqId, app);\n appsPerInput.set(input.name, app);\n });\n}\n\ndocument.addEventListener(\"show-hide-show\", function (e) {\n loadDynamicPicker(e.detail.container);\n});\n\ndocument.addEventListener(\"show-hide-hide\", function (e) {\n console.log(\"hiding event caught\");\n e.detail.container\n .querySelectorAll('[data-module=\"pick-dynamic\"]')\n .forEach((el) => {\n let uniqId = el.dataset.uniqid;\n if (appsOnPage.has(uniqId)) {\n appsOnPage.get(uniqId).unmount();\n appsOnPage.delete(uniqId);\n }\n });\n});\n\ndocument.addEventListener(\"pick-entity-type-action\", function (e) {\n console.log(\"pick entity event\", e);\n if (!appsPerInput.has(e.detail.name)) {\n console.error(\"no app with this name\");\n return;\n }\n const app = appsPerInput.get(e.detail.name);\n if (e.detail.action === \"add\") {\n app.addNewEntity(e.detail.entity);\n } else if (e.detail.action === \"remove\") {\n app.removeEntity(e.detail.entity);\n } else {\n console.error(\"action not supported: \" + e.detail.action);\n }\n});\n\ndocument.addEventListener(\"DOMContentLoaded\", function (e) {\n loadDynamicPicker(document);\n});\n\nwindow.loadDynamicPicker = loadDynamicPicker;\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/module/pick-postal-code/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 10, + "column": 9, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 10, + "endColumn": 12 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'city' is defined but never used.", + "line": 26, + "column": 21, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 26, + "endColumn": 25 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 55, + "column": 57, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 55, + "endColumn": 58 + } + ], + "suppressedMessages": [], + "errorCount": 3, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport PickPostalCode from \"ChillMainAssets/vuejs/PickPostalCode/PickPostalCode\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { appMessages } from \"ChillMainAssets/vuejs/PickEntity/i18n\";\nimport { makeFetch } from \"ChillMainAssets/lib/api/apiMethods\";\n\nconst i18n = _createI18n(appMessages);\n\nfunction loadOnePicker(el, input, uniqId, city) {\n const app = createApp({\n template:\n '',\n components: {\n PickPostalCode,\n },\n data() {\n return {\n city: city,\n };\n },\n methods: {\n onCitySelected(city) {\n this.city = city;\n input.value = city.id;\n },\n onCityRemoved(city) {\n this.city = null;\n input.value = \"\";\n },\n },\n })\n .use(i18n)\n .mount(el);\n}\n\nfunction loadDynamicPickers(element) {\n let apps = element.querySelectorAll('[data-module=\"pick-postal-code\"]');\n\n apps.forEach(function (el) {\n const uniqId = el.dataset.uniqid,\n input = document.querySelector(`input[data-input-uniqid=\"${uniqId}\"]`),\n cityIdValue = input.value === \"\" ? null : input.value;\n if (cityIdValue !== null) {\n makeFetch(\"GET\", `/api/1.0/main/postal-code/${cityIdValue}.json`).then(\n (city) => {\n loadOnePicker(el, input, uniqId, city);\n },\n );\n } else {\n loadOnePicker(el, input, uniqId, null);\n }\n });\n}\n\ndocument.addEventListener(\"DOMContentLoaded\", function (e) {\n loadDynamicPickers(document);\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/module/pick-rolling-date/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'_e' is defined but never used.", + "line": 3, + "column": 57, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 3, + "endColumn": 59 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { ShowHide } from \"ChillMainAssets/lib/show_hide/index\";\n\ndocument.addEventListener(\"DOMContentLoaded\", function (_e) {\n document.querySelectorAll(\"div[data-rolling-date]\").forEach((picker) => {\n const roll_wrapper = picker.querySelector(\"div.roll-wrapper\"),\n fixed_wrapper = picker.querySelector(\"div.fixed-wrapper\");\n\n new ShowHide({\n froms: [roll_wrapper],\n container: [fixed_wrapper],\n test: function (elems) {\n for (let el of elems) {\n for (let select_roll of el.querySelectorAll(\n \"select[data-roll-picker]\",\n )) {\n return select_roll.value === \"fixed_date\";\n }\n }\n return false;\n },\n });\n });\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/module/wopi-link/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 21, + "column": 55, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 21, + "endColumn": 56 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport OpenWopiLink from \"ChillMainAssets/vuejs/_components/OpenWopiLink\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\n\nconst i18n = _createI18n({});\n\n//TODO move to chillDocStore or ChillWopi\n\n/*\n\ntags to load module:\n\n\n\n*/\n\nwindow.addEventListener(\"DOMContentLoaded\", function (e) {\n document\n .querySelectorAll('span[data-module=\"wopi-link\"]')\n .forEach(function (el) {\n createApp({\n template:\n '',\n components: {\n OpenWopiLink,\n },\n data() {\n return {\n wopiUrl: el.dataset.wopiUrl,\n type: el.dataset.docType,\n options:\n el.dataset.options !== \"null\"\n ? JSON.parse(el.dataset.options)\n : {},\n };\n },\n })\n .use(i18n)\n .mount(el);\n });\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/page/export/download-export.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'e' is defined but never used.", + "line": 3, + "column": 55, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 3, + "endColumn": 56 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { download_report } from \"../../lib/download-report/download-report\";\n\nwindow.addEventListener(\"DOMContentLoaded\", function (e) {\n const export_generate_url = window.export_generate_url;\n\n if (typeof export_generate_url === \"undefined\") {\n console.error(\"Alias not found!\");\n throw new Error(\"Alias not found!\");\n }\n\n const query = window.location.search,\n container = document.querySelector(\"#download_container\");\n download_report(export_generate_url + query.toString(), container);\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/page/homepage_widget/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 9, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 9, + "endColumn": 10 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { appMessages } from \"ChillMainAssets/vuejs/HomepageWidget/js/i18n\";\nimport { store } from \"ChillMainAssets/vuejs/HomepageWidget/js/store\";\nimport App from \"ChillMainAssets/vuejs/HomepageWidget/App\";\n\nconst i18n = _createI18n(appMessages);\n\nconst app = createApp({\n template: ``,\n})\n .use(store)\n .use(i18n)\n .component(\"app\", App)\n .mount(\"#homepage_widget\");\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/page/location/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'_e' is defined but never used.", + "line": 63, + "column": 48, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 63, + "endColumn": 50 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "const contactDataBlock = document.querySelector(\"div.location-form-contact\");\nconst addressBlock = document.querySelector(\"div.location-form-address\");\nconst locationType = document.getElementById(\n \"chill_mainbundle_location_locationType\",\n);\n\nconst getSelectedAttributes = (select, attr) =>\n select.selectedOptions[0].getAttribute(attr);\n\nconst removeRequired = (formBlock) => {\n formBlock\n .querySelectorAll(\"label\")\n .forEach((l) => l.classList.remove(\"required\"));\n formBlock\n .querySelectorAll(\"input\")\n .forEach((i) => i.removeAttribute(\"required\"));\n};\n\nconst addRequired = (formBlock) => {\n formBlock\n .querySelectorAll(\"label\")\n .forEach((l) => l.classList.add(\"required\"));\n formBlock\n .querySelectorAll(\"input\")\n .forEach((i) => i.setAttribute(\"required\", \"\"));\n};\n\nconst onLocationTypeChange = () => {\n console.log(getSelectedAttributes(locationType, \"data-address\"));\n console.log(getSelectedAttributes(locationType, \"data-contact\"));\n switch (getSelectedAttributes(locationType, \"data-address\")) {\n case \"optional\":\n default:\n removeRequired(addressBlock);\n addressBlock.classList.remove(\"d-none\");\n break;\n case \"required\":\n addRequired(addressBlock);\n addressBlock.classList.remove(\"d-none\");\n break;\n case \"never\":\n removeRequired(addressBlock);\n addressBlock.classList.add(\"d-none\");\n break;\n }\n switch (getSelectedAttributes(locationType, \"data-contact\")) {\n case \"optional\":\n default:\n removeRequired(contactDataBlock);\n contactDataBlock.classList.remove(\"d-none\");\n break;\n case \"required\":\n addRequired(contactDataBlock);\n contactDataBlock.classList.remove(\"d-none\");\n break;\n case \"never\":\n removeRequired(contactDataBlock);\n contactDataBlock.classList.add(\"d-none\");\n break;\n }\n};\n\ndocument.addEventListener(\"DOMContentLoaded\", (_e) => {\n onLocationTypeChange();\n locationType.addEventListener(\"change\", onLocationTypeChange);\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'arg2' is defined but never used.", + "line": 11, + "column": 29, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 11, + "endColumn": 33 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'arg3' is defined but never used.", + "line": 11, + "column": 35, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 11, + "endColumn": 39 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { ShowHide } from \"ChillMainAssets/lib/show_hide/show_hide.js\";\n\nwindow.addEventListener(\"DOMContentLoaded\", function () {\n let divTransitions = document.querySelector(\"#transitions\"),\n futureDestUsersContainer = document.querySelector(\"#futureDests\");\n if (null !== divTransitions) {\n new ShowHide({\n load_event: null,\n froms: [divTransitions],\n container: [futureDestUsersContainer],\n test: function (divs, arg2, arg3) {\n for (let div of divs) {\n for (let input of div.querySelectorAll(\"input\")) {\n if (input.checked) {\n if (input.dataset.toFinal === \"1\") {\n return false;\n } else {\n return true;\n }\n }\n }\n }\n\n return true;\n },\n });\n }\n\n let transitionFilterContainer = document.querySelector(\"#transitionFilter\"),\n transitions = document.querySelector(\"#transitions\");\n if (null !== transitionFilterContainer) {\n transitions.querySelectorAll(\".form-check\").forEach(function (row) {\n const isForward = row.querySelector(\"input\").dataset.isForward;\n\n new ShowHide({\n load_event: null,\n froms: [transitionFilterContainer],\n container: row,\n test: function (containers) {\n for (let container of containers) {\n for (let input of container.querySelectorAll(\"input\")) {\n if (input.checked) {\n return isForward === input.value;\n }\n }\n }\n },\n toggle_callback: function (c, dir) {\n for (let div of c) {\n let input = div.querySelector(\"input\");\n if (\"hide\" === dir) {\n input.checked = false;\n input.disabled = true;\n } else {\n input.disabled = false;\n }\n }\n },\n });\n });\n }\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/App.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 79, + "column": 55, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 79, + "endColumn": 61 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 101, + "column": 55, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 101, + "endColumn": 61 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'postAddressToPerson' is defined but never used.", + "line": 247, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 247, + "endColumn": 24 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'postAddressToHousehold' is defined but never used.", + "line": 248, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 248, + "endColumn": 27 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"context\" prop.", + "line": 490, + "column": 21, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 490, + "endColumn": 45 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"context\" prop.", + "line": 491, + "column": 21, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 491, + "endColumn": 62 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 508, + "column": 47, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 508, + "endColumn": 53 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 525, + "column": 47, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 525, + "endColumn": 53 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 553, + "column": 47, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 553, + "endColumn": 53 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 572, + "column": 47, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 572, + "endColumn": 53 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 803, + "column": 47, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 803, + "endColumn": 53 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 852, + "column": 47, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 852, + "endColumn": 53 + } + ], + "suppressedMessages": [], + "errorCount": 10, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "messages": [ + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 93, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 93, + "endColumn": 59 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 101, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 101, + "endColumn": 62 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 109, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 109, + "endColumn": 59 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 117, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 117, + "endColumn": 58 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 125, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 125, + "endColumn": 66 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 133, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 133, + "endColumn": 59 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 141, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 141, + "endColumn": 66 + } + ], + "suppressedMessages": [], + "errorCount": 7, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "messages": [ + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 106, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 106, + "endColumn": 60 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 114, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 114, + "endColumn": 66 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 128, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 128, + "endColumn": 49 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 129, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 131, + "endColumn": 14 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 132, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 132, + "endColumn": 63 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 133, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 133, + "endColumn": 75 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 134, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 134, + "endColumn": 58 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 139, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 139, + "endColumn": 46 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 153, + "column": 55, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 153, + "endColumn": 61 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 154, + "column": 37, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 155, + "endColumn": 58 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 171, + "column": 59, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 171, + "endColumn": 65 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 172, + "column": 41, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 173, + "endColumn": 62 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 190, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 190, + "endColumn": 66 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 191, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 191, + "endColumn": 72 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 192, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 192, + "endColumn": 61 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 222, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 222, + "endColumn": 57 + } + ], + "suppressedMessages": [], + "errorCount": 16, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "messages": [ + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 96, + "column": 20, + "nodeType": "CallExpression", + "messageId": "unexpectedMutation", + "endLine": 98, + "endColumn": 14 + }, + { + "ruleId": "vue/no-side-effects-in-computed-properties", + "severity": 2, + "message": "Unexpected side effect in \"cities\" computed property.", + "line": 96, + "column": 20, + "nodeType": "CallExpression", + "messageId": "unexpectedSideEffectInProperty", + "endLine": 98, + "endColumn": 14 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 102, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 102, + "endColumn": 59 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 110, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 110, + "endColumn": 59 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 124, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 124, + "endColumn": 51 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 125, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 125, + "endColumn": 65 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 126, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 126, + "endColumn": 65 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 131, + "column": 21, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 132, + "endColumn": 54 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 145, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 145, + "endColumn": 46 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 146, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 146, + "endColumn": 60 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 147, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 147, + "endColumn": 60 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 149, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 150, + "endColumn": 45 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 152, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 152, + "endColumn": 59 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 161, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 161, + "endColumn": 43 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 170, + "column": 51, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 170, + "endColumn": 57 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 171, + "column": 33, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 174, + "endColumn": 38 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'reject' is defined but never used.", + "line": 190, + "column": 55, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 190, + "endColumn": 61 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 191, + "column": 37, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 194, + "endColumn": 42 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 210, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 210, + "endColumn": 49 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 211, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 211, + "endColumn": 63 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 212, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 212, + "endColumn": 63 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 213, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 213, + "endColumn": 62 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 245, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 245, + "endColumn": 58 + } + ], + "suppressedMessages": [], + "errorCount": 23, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CountrySelection.vue", + "messages": [ + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 75, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 75, + "endColumn": 49 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 80, + "column": 13, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 80, + "endColumn": 48 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/DatePane.vue", + "messages": [ + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 95, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 95, + "endColumn": 67 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 103, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 103, + "endColumn": 65 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/EditPane.vue", + "messages": [ + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 155, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 155, + "endColumn": 58 + }, + { + "ruleId": "vue/no-mutating-props", + "severity": 2, + "message": "Unexpected mutation of \"entity\" prop.", + "line": 164, + "column": 17, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedMutation", + "endLine": 164, + "endColumn": 57 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 10, + "column": 9, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 10, + "endColumn": 12 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { addressMessages } from \"./i18n\";\nimport App from \"./App.vue\";\n\nconst i18n = _createI18n(addressMessages);\n\nlet containers = document.querySelectorAll(\".address-container\");\ncontainers.forEach((container) => {\n const app = createApp({\n template: ``,\n data() {\n return {\n addAddress: {\n context: {\n target: {\n name: container.dataset.targetName,\n id: parseInt(container.dataset.targetId),\n },\n edit: container.dataset.mode === \"edit\", //boolean\n addressId: parseInt(container.dataset.addressId) || null,\n backUrl: container.dataset.backUrl || null,\n defaults: JSON.parse(container.dataset.addressDefaults),\n },\n options: {\n /// Options override default.\n /// null value take default component value defined in AddAddress data()\n button: {\n text: {\n create: container.dataset.buttonText || null,\n edit: container.dataset.buttonText || null,\n },\n size: container.dataset.buttonSize || null,\n displayText: container.dataset.buttonDisplayText !== \"false\", //boolean, default: true\n },\n\n /// Modal title text if create or edit address (trans chain, see i18n)\n title: {\n create: container.dataset.modalTitle || null,\n edit: container.dataset.modalTitle || null,\n },\n\n /// Display panes in Modal for step123\n openPanesInModal: container.dataset.openPanesInModal !== \"false\", //boolean, default: true\n\n /// Display actions buttons of panes in a sticky-form-button navbar\n stickyActions: container.dataset.stickyActions === \"true\", //boolean, default: false\n\n /// Use Date fields\n useDate: {\n validFrom: container.dataset.useValidFrom === \"true\", //boolean, default: false\n validTo: container.dataset.useValidTo === \"true\", //boolean, default: false\n },\n\n /// Don't display show renderbox Address: showPane display only a button\n onlyButton: container.dataset.onlyButton === \"true\", //boolean, default: false\n },\n },\n };\n },\n })\n .use(i18n)\n .component(\"app\", App)\n .mount(container);\n\n //console.log('container dataset', container.dataset);\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 22, + "column": 11, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 22, + "endColumn": 14 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'_e' is defined but never used.", + "line": 86, + "column": 48, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 86, + "endColumn": 50 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { addressMessages } from \"./i18n\";\nimport App from \"./App.vue\";\n\nconst i18n = _createI18n(addressMessages);\n\nconst addAddressInput = (inputs) => {\n console.log(inputs);\n inputs.forEach((el) => {\n let addressId = el.value,\n uniqid = el.dataset.inputAddress,\n container = el.parentNode.querySelector(\n 'div[data-input-address-container=\"' + uniqid + '\"]',\n ),\n isEdit = addressId !== \"\",\n addressIdInt = addressId !== \"\" ? parseInt(addressId) : null;\n if (container === null) {\n throw Error(\"no container\");\n }\n /* exported app */\n const app = createApp({\n template: ``,\n data() {\n return {\n addAddress: {\n context: {\n // for legacy ? can be remove ?\n target: {\n name: \"input-address\",\n id: addressIdInt,\n },\n edit: isEdit,\n addressId: addressIdInt,\n defaults: window.addaddress,\n },\n options: {\n /// Options override default.\n /// null value take default component value defined in AddAddress data()\n button: {\n text: {\n create: el.dataset.buttonTextCreate || null,\n edit: el.dataset.buttonTextUpdate || null,\n },\n size: null,\n displayText: true,\n },\n\n /// Modal title text if create or edit address (trans chain, see i18n)\n title: {\n create: null,\n edit: null,\n },\n\n /// Display panes in Modal for step123\n openPanesInModal: true,\n\n /// Display actions buttons of panes in a sticky-form-button navbar\n stickyActions: false,\n showMessageWhenNoAddress: true,\n\n /// Use Date fields\n useDate: {\n validFrom: el.dataset.useValidFrom === \"1\" || false, //boolean, default: false\n validTo: el.dataset.useValidTo === \"1\" || false, //boolean, default: false\n },\n\n /// Don't display show renderbox Address: showPane display only a button\n onlyButton: false,\n },\n },\n };\n },\n methods: {\n associateToInput(payload) {\n el.value = payload.addressId;\n },\n },\n })\n .use(i18n)\n .component(\"app\", App)\n .mount(container);\n });\n};\n\ndocument.addEventListener(\"DOMContentLoaded\", (_e) =>\n addAddressInput(\n document.querySelectorAll('input[type=\"hidden\"][data-input-address]'),\n ),\n);\n\nwindow.addEventListener(\"collection-add-entry\", (e) =>\n addAddressInput(\n e.detail.entry.querySelectorAll('input[type=\"hidden\"][data-input-address]'),\n ),\n);\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/DashboardWidgets/NewsItem.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-explicit-any", + "severity": 2, + "message": "Unexpected any. Specify a different type.", + "line": 142, + "column": 57, + "nodeType": "TSAnyKeyword", + "messageId": "unexpectedAny", + "endLine": 142, + "endColumn": 60, + "suggestions": [ + { + "messageId": "suggestUnknown", + "fix": { + "range": [ + 4203, + 4206 + ], + "text": "unknown" + }, + "desc": "Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct." + }, + { + "messageId": "suggestNever", + "fix": { + "range": [ + 4203, + 4206 + ], + "text": "never" + }, + "desc": "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of." + } + ] + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue", + "messages": [ + { + "ruleId": "vue/return-in-computed-property", + "severity": 2, + "message": "Expected to return a value in \"buttonMessage\" computed property.", + "line": 204, + "column": 22, + "nodeType": "FunctionExpression", + "messageId": "expectedReturnInProperty", + "endLine": 211, + "endColumn": 10 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 12, + "column": 9, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 12, + "endColumn": 12 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { ontheflyMessages } from \"./i18n.js\";\nimport App from \"./App.vue\";\n\nconst i18n = _createI18n(ontheflyMessages);\n\nlet containers = document.querySelectorAll(\".onthefly-container\");\n\ncontainers.forEach((container) => {\n /*exported app */\n const app = createApp({\n template: ``,\n data() {\n return {\n onTheFly: {\n context: {\n action: container.dataset.action,\n type: container.dataset.targetName,\n id: parseInt(container.dataset.targetId),\n },\n options: {\n buttonText: container.dataset.buttonText || null,\n displayBadge: container.dataset.displayBadge || false,\n isDead: container.dataset.isDead || false,\n parent: container.dataset.parent\n ? JSON.parse(container.dataset.parent)\n : null,\n },\n },\n };\n },\n })\n .use(i18n)\n .component(\"app\", App)\n .mount(container);\n\n //console.log('container dataset', container.dataset);\n //console.log('data-parent', container.dataset.parent);\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/PickEntity/PickEntity.vue", + "messages": [ + { + "ruleId": "vue/require-valid-default-prop", + "severity": 2, + "message": "Type of the default value for 'suggested' prop must be a function.", + "line": 59, + "column": 22, + "nodeType": "ArrayExpression", + "messageId": "invalidType", + "endLine": 59, + "endColumn": 24 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/AddressDetails/Parts/AddressDetailsMap.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'LatLngExpression' is defined but never used.", + "line": 24, + "column": 13, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 24, + "endColumn": 29 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Entity/GenderIconRenderBox.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'props' is assigned a value but never used.", + "line": 6, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 6, + "endColumn": 12 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/ListWorkflow.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'popoverList' is assigned a value but never used.", + "line": 141, + "column": 15, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 141, + "endColumn": 26 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Modal.vue", + "messages": [ + { + "ruleId": "vue/require-toggle-inside-transition", + "severity": 2, + "message": "The element inside `` is expected to have a `v-if` or `v-show` directive.", + "line": 3, + "column": 9, + "nodeType": "VStartTag", + "messageId": "expected", + "endLine": 3, + "endColumn": 33 + }, + { + "ruleId": "vue/require-valid-default-prop", + "severity": 2, + "message": "Type of the default value for 'modalDialogClass' prop must be a function.", + "line": 59, + "column": 22, + "nodeType": "ObjectExpression", + "messageId": "invalidType", + "endLine": 59, + "endColumn": 24 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/page/accompanying_course_index/masonry.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'msnry' is assigned a value but never used.", + "line": 4, + "column": 5, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 4, + "endColumn": 10 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import Masonry from \"masonry-layout/masonry\";\n\nlet elem = document.querySelector(\"#dashboards\");\nlet msnry = new Masonry(elem, {\n // options\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/page/person/suggest-names.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'tags' is assigned a value but never used.", + "line": 47, + "column": 9, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 47, + "endColumn": 13 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "function capitalizeFirstLetter(string) {\n return string.charAt(0).toLocaleUpperCase() + string.slice(1);\n}\n\nwindow.addEventListener(\"DOMContentLoaded\", function () {\n const uri = decodeURI(location.hash.substring(1));\n let searchFragments = uri.split(\" \");\n searchFragments = searchFragments.filter((el) => {\n if (\n el.startsWith(\"firstname\") ||\n el.startsWith(\"lastname\") ||\n (el !== \"\" &&\n !el.startsWith(\"birthdate\") &&\n !el.startsWith(\"gender\") &&\n !el.startsWith(\"city\") &&\n !el.startsWith(\"phonenumber\") &&\n !el.startsWith(\"@\"))\n ) {\n return el;\n }\n });\n\n searchFragments = searchFragments.map((el) => {\n if (el.startsWith(\"firstname\")) {\n return el.slice(10);\n } else if (el.startsWith(\"lastname\")) {\n return el.slice(10);\n }\n return el.replace('\"', \"\");\n });\n\n if (searchFragments) {\n const pre = '
    ';\n const after = \"
\";\n\n document\n .querySelectorAll(\"[data-suggest-container]\")\n .forEach(function (container) {\n const suggestions = searchFragments.map(\n (el) =>\n `
  • ${capitalizeFirstLetter(el)}
  • `,\n );\n container.innerHTML = pre + suggestions.join(\" \") + after;\n });\n }\n\n const tags = document\n .querySelectorAll(\"[data-suggest-target]\")\n .forEach((tag) => {\n tag.addEventListener(\"click\", function (e) {\n const field = document.querySelector(\n `[name=\"${e.target.dataset.suggestTarget}\"]`,\n );\n let suggestion = e.target.textContent.trim();\n switch (field.dataset.suggestTransform) {\n case \"uppercase_all\":\n suggestion = suggestion.toLocaleUpperCase();\n break;\n case \"uppercase_first_letter\":\n default:\n suggestion = capitalizeFirstLetter(suggestion);\n }\n\n if (field.value === \"\") {\n field.value = suggestion;\n } else {\n field.value = `${field.value} ${suggestion}`;\n }\n e.target.style.display = \"none\";\n\n [...document.querySelectorAll(\"[data-suggest-target]\")]\n .filter((p) => p.textContent.includes(e.target.textContent))\n .forEach((p) => p.remove());\n });\n });\n});\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StickyNav.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 116, + "column": 18, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 116, + "endColumn": 23 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 19, + "column": 11, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 19, + "endColumn": 14 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 42, + "column": 11, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 42, + "endColumn": 14 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { appMessages } from \"./js/i18n\";\nimport { initPromise } from \"./store\";\nimport \"vue-toast-notification/dist/theme-sugar.css\";\nimport App from \"./App.vue\";\nimport Banner from \"./components/Banner.vue\";\nimport ToastPlugin from \"vue-toast-notification\";\n\nconst root = window.vueRootComponent;\n\n/*\n * Load all App component, for AccompanyingCourse edition page\n */\nif (root === \"app\") {\n initPromise(root).then((store) => {\n const i18n = _createI18n(appMessages);\n\n const app = createApp({\n template: ``,\n })\n .use(store)\n .use(i18n)\n .use(ToastPlugin, {\n position: \"bottom-right\",\n type: \"error\",\n duration: 5000,\n dismissible: true,\n })\n .component(\"app\", App)\n .mount(\"#accompanying-course\");\n });\n}\n\n/*\n * Load only Banner sub-component, for all others AccompanyingCourse page\n */\nif (root === \"banner\") {\n initPromise(root).then((store) => {\n const i18n = _createI18n(appMessages);\n\n const app = createApp({\n template: ``,\n })\n .use(store)\n .use(i18n)\n .use(ToastPlugin, {\n position: \"bottom-right\",\n type: \"error\",\n duration: 5000,\n dismissible: true,\n })\n .component(\"banner\", Banner)\n .mount(\"#banner-accompanying-course\");\n });\n}\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkCreate/index.js", + "messages": [ + { + "ruleId": "no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 12, + "column": 7, + "nodeType": "Identifier", + "messageId": "unusedVar", + "endLine": 12, + "endColumn": 10 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 12, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 12, + "endColumn": 10 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { store } from \"./store\";\nimport { personMessages } from \"ChillPersonAssets/vuejs/_js/i18n\";\nimport App from \"./App.vue\";\nimport ToastPlugin from \"vue-toast-notification\";\n\nconst i18n = _createI18n(personMessages);\n\n/*eslint no-unused-vars: \"error\"*/\n/* exported app */\nconst app = createApp({\n template: ``,\n})\n .use(store)\n .use(i18n)\n .use(ToastPlugin, {\n position: \"bottom-right\",\n type: \"error\",\n duration: 10000,\n dismissible: true,\n })\n .component(\"app\", App)\n .mount(\"#accompanying_course_work_create\");\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/FormEvaluation.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'event' is defined but never used.", + "line": 568, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 568, + "endColumn": 12 + }, + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'link' is defined but never used.", + "line": 569, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 569, + "endColumn": 11 + } + ], + "suppressedMessages": [], + "errorCount": 2, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 12, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 12, + "endColumn": 10 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { store } from \"./store\";\nimport { personMessages } from \"ChillPersonAssets/vuejs/_js/i18n\";\nimport \"vue-toast-notification/dist/theme-sugar.css\";\nimport App from \"./App.vue\";\nimport ToastPlugin from \"vue-toast-notification\";\n\nconst i18n = _createI18n(personMessages);\n\n/* exported app */\nconst app = createApp({\n template: ``,\n})\n .use(store)\n .use(ToastPlugin, {\n position: \"bottom-right\",\n type: \"error\",\n duration: 10000,\n dismissible: true,\n })\n .use(i18n)\n .component(\"app\", App)\n .mount(\"#accompanying_course_work_edit\");\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/ExportFormActionGoalResult/App.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-expressions", + "severity": 2, + "message": "Expected an assignment or function call and instead saw an expression.", + "line": 282, + "column": 7, + "nodeType": "ExpressionStatement", + "messageId": "unusedExpression", + "endLine": 286, + "endColumn": 15 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/ExportFormActionGoalResult/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 16, + "column": 9, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 16, + "endColumn": 12 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport App from \"./App.vue\";\n\nif (\n null !==\n document.getElementById(\"export_filters_social_work_type_filter_enabled\")\n) {\n const i18n = _createI18n({});\n const form = document.getElementById(\n \"export_filters_social_work_type_filter_form\",\n );\n const after = form.appendChild(document.createElement(\"div\"));\n\n /* exported app */\n const app = createApp({\n template: ``,\n })\n .use(i18n)\n .component(\"app\", App)\n .mount(after);\n}\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdMembersEditor/components/Positioning.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is defined but never used.", + "line": 82, + "column": 31, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 82, + "endColumn": 34 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdMembersEditor/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 13, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 13, + "endColumn": 10 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { appMessages } from \"./js/i18n\";\nimport { store } from \"./store\";\nimport \"vue-toast-notification/dist/theme-sugar.css\";\nimport ToastPlugin from \"vue-toast-notification\";\n\nimport App from \"./App.vue\";\n\nconst i18n = _createI18n(appMessages);\n\n/* exported app */\nconst app = createApp({\n template: ``,\n})\n .use(store)\n .use(i18n)\n .use(ToastPlugin, {\n position: \"bottom-right\",\n type: \"error\",\n duration: 5000,\n dismissible: true,\n })\n .component(\"app\", App)\n .mount(\"#household_members_editor\");\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue", + "messages": [ + { + "ruleId": "vue/return-in-computed-property", + "severity": 2, + "message": "Expected to return a value in \"refreshNetwork\" computed property.", + "line": 263, + "column": 19, + "nodeType": "FunctionExpression", + "messageId": "expectedReturnInProperty", + "endLine": 266, + "endColumn": 6 + }, + { + "ruleId": "vue/no-side-effects-in-computed-properties", + "severity": 2, + "message": "Unexpected side effect in \"legendLayers\" computed property.", + "line": 270, + "column": 7, + "nodeType": "AssignmentExpression", + "messageId": "unexpectedSideEffectInProperty", + "endLine": 270, + "endColumn": 30 + }, + { + "ruleId": "vue/no-dupe-keys", + "severity": 2, + "message": "Duplicate key 'checkedLayers'. May cause name collision in script or template tag.", + "line": 281, + "column": 5, + "nodeType": "Identifier", + "messageId": "duplicateKey", + "endLine": 281, + "endColumn": 18 + }, + { + "ruleId": "@typescript-eslint/no-unused-expressions", + "severity": 2, + "message": "Expected an assignment or function call and instead saw an expression.", + "line": 353, + "column": 7, + "nodeType": "ExpressionStatement", + "messageId": "unusedExpression", + "endLine": 353, + "endColumn": 27 + } + ], + "suppressedMessages": [], + "errorCount": 4, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/index.js", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'app' is assigned a value but never used.", + "line": 20, + "column": 7, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 20, + "endColumn": 10 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "import { createApp } from \"vue\";\nimport { store } from \"./store.js\";\nimport { _createI18n } from \"ChillMainAssets/vuejs/_js/i18n\";\nimport { visMessages } from \"./i18n\";\nimport App from \"./App.vue\";\nimport \"vue-toast-notification/dist/theme-sugar.css\";\nimport \"./vis-network\";\nimport ToastPlugin from \"vue-toast-notification\";\n\nconst i18n = _createI18n(visMessages);\nconst container = document.getElementById(\"relationship-graph\");\nconst persons = JSON.parse(container.dataset.persons);\n\npersons.forEach((person) => {\n store.dispatch(\"addPerson\", person);\n store.commit(\"markInWhitelist\", person);\n});\n\n/* exported app */\nconst app = createApp({\n template: ``,\n data() {\n return {\n household_id: JSON.parse(container.dataset.householdId),\n };\n },\n})\n .use(store)\n .use(i18n)\n .use(ToastPlugin, {\n position: \"bottom-right\",\n type: \"error\",\n duration: 5000,\n dismissible: true,\n })\n .component(\"app\", App)\n .mount(\"#relationship-graph\");\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AccompanyingPeriod/SetReferrer.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'response' is defined but never used.", + "line": 42, + "column": 16, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 42, + "endColumn": 24 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-vars", + "severity": 2, + "message": "'_response' is defined but never used.", + "line": 356, + "column": 28, + "nodeType": null, + "messageId": "unusedVar", + "endLine": 356, + "endColumn": 37 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + }, + { + "filePath": "/home/julielenaerts/Documents/CHAMPSLIBRES/CHILL/chill-base-v3/vendor/chill-project/chill-bundles/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue", + "messages": [ + { + "ruleId": "@typescript-eslint/no-unused-expressions", + "severity": 2, + "message": "Expected an assignment or function call and instead saw an expression.", + "line": 371, + "column": 21, + "nodeType": "ExpressionStatement", + "messageId": "unusedExpression", + "endLine": 373, + "endColumn": 62 + } + ], + "suppressedMessages": [], + "errorCount": 1, + "fatalErrorCount": 0, + "warningCount": 0, + "fixableErrorCount": 0, + "fixableWarningCount": 0, + "source": "\n\n\n\n\n", + "usedDeprecatedRules": [] + } +]