diff --git a/.eslint-baseline.json b/.eslint-baseline.json new file mode 100644 index 000000000..04895dfaf --- /dev/null +++ b/.eslint-baseline.json @@ -0,0 +1,1674 @@ +[ + { + "path": "docs/source/development/user-interface/js-functions/show_hide.js", + "line": 12, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "6d66a79b37a676e44177f5e22c83250315d23c96" + }, + { + "path": "docs/source/development/user-interface/js-functions/show_hide.js", + "line": 29, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "ecfe1d9da55e96316b21de60db959be5f9e20f59" + }, + { + "path": "src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue", + "line": 136, + "column": 39, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "4faa92668b8548e3b747568ef9a3671708c0fbf9" + }, + { + "path": "src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue", + "line": 211, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "d1fd4d809f01ecad48418336edca270335fccff9" + }, + { + "path": "src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/index.js", + "line": 18, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "f8c2979921289906e3baabae31ba101ead91504f" + }, + { + "path": "src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/index.js", + "line": 57, + "column": 23, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "cf0cf378f71403f62a6425f384ccbbdec433d1f2" + }, + { + "path": "src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/store.js", + "line": 90, + "column": 13, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'resources' is assigned a value but never used.", + "hash": "342d8aad3e080ba262239e5f5c6fc419f388ca33" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/module/Invite/answer.js", + "line": 7, + "column": 57, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "7930b2e3b44140e5058b66710ecdccdb81871c1a" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/Components/CalendarActive.vue", + "line": 19, + "column": 30, + "ruleId": "vue/valid-v-else", + "message": "'v-else' directives require no attribute value.", + "hash": "505f99b24500a684eec3c6bf870426fcd841c20b" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/Components/CalendarActive.vue", + "line": 54, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'mapGetters' is defined but never used.", + "hash": "01e3928f7d9be0accb6db3894b158dd683a685ff" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/index.js", + "line": 10, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "4dae6f8a4aa0fabbbd88aabc983cf03da6f3b7fd" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/actions.js", + "line": 29, + "column": 32, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'getters' is defined but never used.", + "hash": "5ac92a47d5c8de02a33eef97b27a75e68841ab04" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/actions.js", + "line": 238, + "column": 35, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'state' is defined but never used.", + "hash": "8d8cdf4931f8b803539d67ef603fc5011a439ad0" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/getters.js", + "line": 30, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'getters' is defined but never used.", + "hash": "790488f2c65040f92bb02cb31c35e9a9fff907ec" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/getters.js", + "line": 279, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'resources' is assigned a value but never used.", + "hash": "950151f3e4a25489310590e6137cfe2c155bd579" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/index.js", + "line": 3, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'postLocation' is defined but never used.", + "hash": "c4fc4177d62914f827e7a5c2cd0cb974b947e3f7" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Invite/Answer.vue", + "line": 95, + "column": 13, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'payload' is defined but never used.", + "hash": "66c545917093ba30f1d6ca10ddaa676140e749bd" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 224, + "column": 10, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reactive' is defined but never used.", + "hash": "96ed76a9828138fb125fc36c4b55e900bbfe87c2" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 230, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'DropArg' is defined but never used.", + "hash": "bd405399a4091d65e8391404bfb0c4611816c8e0" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 251, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'t' is assigned a value but never used.", + "hash": "bc09207a496405f7a71c178e522b89aeb1f7ebd3" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 356, + "column": 32, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'arg' is defined but never used.", + "hash": "aeae152f0669b946a1ad681dd52b0ef03393ae79" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 434, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'changedEvent' is assigned a value but never used.", + "hash": "a7a81a6bf09d00c0364e3aa8207ffad853f0547b" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/App2.vue", + "line": 444, + "column": 5, + "ruleId": "@typescript-eslint/ban-ts-comment", + "message": "Use \"@ts-expect-error\" instead of \"@ts-ignore\", as \"@ts-ignore\" will do nothing if the following line is error-free.", + "hash": "1b8a1b6b081d3f14ed319619e6031039668cd736" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/Components/EditLocation.vue", + "line": 77, + "column": 16, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_' is defined but never used.", + "hash": "d29fb2fc9299c48082167b2fa4c427c569716bd6" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/Components/EditLocation.vue", + "line": 82, + "column": 30, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_' is defined but never used.", + "hash": "bd8f0e9bb24ec4486579bfac87c52db7ebb9f182" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/Components/EditLocation.vue", + "line": 82, + "column": 33, + "ruleId": "@typescript-eslint/no-explicit-any", + "message": "Unexpected any. Specify a different type.", + "hash": "991397a66bbda97bd596a67f11e8caa98b53e517" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 108, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "1a771f9f65375cac2002ed7d706184355685d378" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 148, + "column": 29, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"users\" prop.", + "hash": "d9f7e517892b6588be17516fd077c3149ccbefd9" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 151, + "column": 29, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"calendarEvents\" prop.", + "hash": "47c270d8c0bcda67ea04a83ba267eca3e70fa7fb" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 154, + "column": 59, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "7cf30f0d2dc567ea0dfb44dadfc9ecf4977e7b95" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 155, + "column": 41, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"users\" prop.", + "hash": "7876348a3eee16be7effd3e992a6aaa2334cfd24" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 164, + "column": 63, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "0f308d7417bfc294b28eea6890666a2d91e31ecd" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 185, + "column": 57, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"calendarEvents\" prop.", + "hash": "5a021a581a33d3aeea21c65e023902f2123bb562" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 218, + "column": 17, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "655811d4dad8de23b3d37dfbf02f7fca18b6d8f2" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 235, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"calendarEvents\" prop.", + "hash": "19317d9a564b8b10355cac1eeb9308c7d49c0dd1" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 240, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"users\" prop.", + "hash": "95e478eca53a2acfa8edd0aa5747e73b0da01d0c" + }, + { + "path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue", + "line": 246, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"users\" prop.", + "hash": "0b66e38f0c0bbe17aa7c548dc127be033133ce06" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 8, + "column": 3, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "bc5721039a242f9d275fcd6879ebfcdfea2a5eb1" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 30, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'decryptError' is assigned a value but never used.", + "hash": "fed5b83c3c3d5d1fc6912801b7fbf33659284552" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 31, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'fetchError' is assigned a value but never used.", + "hash": "b5719b526776f763e4c3edc948400c6e41d6b299" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 32, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'key' is defined but never used.", + "hash": "369b13ffbe97104d3b2c984678c8f00fbfc31a35" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 33, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'url' is defined but never used.", + "hash": "6b5067617eb3c8a563d70dca46e756314a2f81d5" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js", + "line": 87, + "column": 13, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'error' is defined but never used.", + "hash": "e26e5e101e90d2b7ee84d6f5de8c819e52129c17" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 39, + "column": 3, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "7cbec23eb581a6e7090acffbcb3efc0bf4de260e" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 44, + "column": 40, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'files' is defined but never used.", + "hash": "6907608aafd5b95a7beda9647b214705545569ba" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 103, + "column": 34, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'zoneData' is defined but never used.", + "hash": "aabe2ba3b3f0aff817c64f5e5002dd18e16f77da" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 141, + "column": 27, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'file' is defined but never used.", + "hash": "fa4c56a1614fa1342a10c54d8587b6ce8ee32ca8" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 154, + "column": 43, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'response' is defined but never used.", + "hash": "341a9ef745481a5cc1fa94db48c8f16cbbe836c4" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 159, + "column": 39, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'file' is defined but never used.", + "hash": "c222ff822f41535c2ec8d0c1e504caa65259066e" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 165, + "column": 41, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'file' is defined but never used.", + "hash": "1ac09121d7d8725c70d7d7f58010212c031759dc" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 239, + "column": 30, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'zoneData' is defined but never used.", + "hash": "6e72d62f9f6031a09d5d39f751bd2fcbc500ee55" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 301, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'removeDownloadButton' is assigned a value but never used.", + "hash": "a91a8e7065fec4c015bfc155ebfcb2820db71242" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 301, + "column": 37, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'zoneData' is defined but never used.", + "hash": "60bfad4fe297c635f2f2c1b132754946480f4454" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js", + "line": 348, + "column": 43, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "27fd905f7750f1ee727f8c8fa5bbc12493a37c54" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DropFileWidget/DropFileWidget.vue", + "line": 3, + "column": 20, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'ref' is defined but never used.", + "hash": "11fba46b19890b0af973dc69d26d0c1101ca67e6" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DropFileWidget/DropFileWidget.vue", + "line": 3, + "column": 25, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'Ref' is defined but never used.", + "hash": "51180c9c7d852650d0b930900cee3d9aca10c4c3" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/ConvertButton.vue", + "line": 11, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'download_and_decrypt_doc' is defined but never used.", + "hash": "9a803f1fe608ec60ab065aa8f76e50e2ef1fa4c2" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/ConvertButton.vue", + "line": 14, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'mime' is defined but never used.", + "hash": "13520522261b138600d6ec9028ee02eb9cd06180" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/ConvertButton.vue", + "line": 16, + "column": 24, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'StoredObjectCreated' is defined but never used.", + "hash": "8854f9f0336635e1bdb7cb743b087054d3e81b08" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/ConvertButton.vue", + "line": 50, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reset_pending' is assigned a value but never used.", + "hash": "96fde3634a150f1253fac2f2f2bdcfe6e0daf82a" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/DownloadButton.vue", + "line": 25, + "column": 35, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'onMounted' is defined but never used.", + "hash": "071371d75d669b48a5d7e097dc31d9bed5ba39e0" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/DownloadButton.vue", + "line": 63, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'button' is assigned a value but never used.", + "hash": "6b518faa53a23c445349daf5f1c72a59587d1a19" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/DownloadButton.vue", + "line": 110, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'timer' is assigned a value but never used.", + "hash": "d1eaa6bb3791ebddf83f72cbb91dd81811bae746" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/WopiEditButton.vue", + "line": 15, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'WopiEditButton' is defined but never used.", + "hash": "80cb06a18ac4db47e8d120103704ec6988696b79" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/WopiEditButton.vue", + "line": 19, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'StoredObjectCreated' is defined but never used.", + "hash": "08405682f5a88e2b14ad9e5cd749d3fbc305bfae" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/_components/AddAsyncUpload.vue", + "line": 117, + "column": 22, + "ruleId": "vue/require-valid-default-prop", + "message": "Type of the default value for 'options' prop must be a function.", + "hash": "dfb3ca29f8c121534b71e1ba2b8560f07b8740ba" + }, + { + "path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/_components/AddAsyncUpload.vue", + "line": 125, + "column": 22, + "ruleId": "vue/require-valid-default-prop", + "message": "Type of the default value for 'btnClasses' prop must be a function.", + "hash": "7efd2b5fd0b0f1107fa004f0fb0b0d6ff7b5c469" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/cv_edit/index.js", + "line": 7, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'a' is assigned a value but never used.", + "hash": "46d2235305e750a202849fb47836fb72efb23a05" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/cv_edit/index.js", + "line": 11, + "column": 28, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "d10364cc7a78ac507fcdc72faad1e6c53b33d756" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/cv_edit/index.js", + "line": 32, + "column": 43, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_e' is defined but never used.", + "hash": "464451b9cf747ada3d7b960bdbec52fa83470ac0" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/dispositif_edit/index.js", + "line": 15, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "a502c4bb96318eab29957a19c21ca2dae860a736" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/dispositif_edit/index.js", + "line": 30, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "a18e483f334f58f4202744bb7690131e79accbe3" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/dispositif_edit/index.js", + "line": 47, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "7f049438577bc91505d4f53f96117401ed09685a" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/dispositif_edit/index.js", + "line": 59, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "ba32878c1dd4f851b70b128aaa81910d398002cb" + }, + { + "path": "src/Bundle/ChillJobBundle/src/Resources/public/module/immersion_edit/index.js", + "line": 8, + "column": 26, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "3e8d716f29c9281b10dd453dd4a72eadd4a58525" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 3, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'moment' is defined but never used.", + "hash": "50b0cc2383baff6bba176e52d2516605b1cac04a" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 241, + "column": 17, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "1a01f297aa8e16086c60374ec293ff2f1ccd4f62" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 282, + "column": 21, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "b194f742a3a8c4af5919ecd77c10f52c61537425" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 315, + "column": 7, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "5b6badc602a6175fa4dccc529b3a45239461eb2e" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 319, + "column": 7, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "6bda13d299b7f93955b9197391c071e16ac28b0c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/chill.js", + "line": 352, + "column": 5, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "ccc46215d423bf1815b495bdb4dc2e10b7834017" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/counter.js", + "line": 28, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "a78b1ecd6fe7ca192d7f00aee8b270d435a9042a" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/download-report/download-report.js", + "line": 18, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'mime' is defined but never used.", + "hash": "c8ef5b1aa8983aec00f188234be22c77a9a77425" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/select_interactive_loading/index.js", + "line": 1, + "column": 43, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "a3317069459ea66c96501bd9cfb77ea42813ca94" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/select_interactive_loading/index.js", + "line": 5, + "column": 3, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "d43728b51f59dc4bea30de30b1090d76ccdd5faf" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/tabs/tabs.js", + "line": 19, + "column": 3, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "d62839e33722008a8888ec8397584c9e15ef4974" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/tabs/tabs.js", + "line": 51, + "column": 30, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'pane' is defined but never used.", + "hash": "2c53f99e3ff670ca2d695b7da3106e49c0d0ae0d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/lib/tabs/tabs.js", + "line": 77, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'tabs' is assigned a value but never used.", + "hash": "750c361cd41b0d42baa186d7e505dde80db12dd3" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/blur/index.js", + "line": 9, + "column": 32, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "2a0ad2a99642951ded06c75a14b668fb6c56129d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 8, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'Dropdown' is defined but never used.", + "hash": "03f2e6cddba6e332840742e3826b59018087c97c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 9, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'Modal' is defined but never used.", + "hash": "b68c78d1b28da96ca9eade0b083ef986a82bc81f" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 10, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'Collapse' is defined but never used.", + "hash": "daa0e8fded9a2a5fc6288a0fcf09509e2e13a661" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 27, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'carousel' is assigned a value but never used.", + "hash": "7c700d60868641fee4b9b1925a70bf1aea1c59c3" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 34, + "column": 50, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "e534f5b90d9d78f819b788579c6dc97cc96ab4f4" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/bootstrap/index.js", + "line": 62, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'popoverList' is assigned a value but never used.", + "hash": "2fd1da06ffc0a1025552cd02b7838cb5ee70006c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/disable-buttons/index.js", + "line": 9, + "column": 43, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "1c04bebef0448105f6d455da4eb89bbbc299f7fc" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/disable-buttons/index.js", + "line": 10, + "column": 3, + "ruleId": "@typescript-eslint/prefer-for-of", + "message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.", + "hash": "aac391029a9094c0024acd4748728d0345d43d62" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/notification/toggle_read.js", + "line": 4, + "column": 8, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'NotificationReadAllToggle' is defined but never used.", + "hash": "85b91b57af8f355c4da6175f0cd10543e8c21298" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/notification/toggle_read.js", + "line": 8, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "07f4feb1fc536257245672cadc5e4a6eff3dfd11" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-entity/index.js", + "line": 26, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-expressions", + "message": "Expected an assignment or function call and instead saw an expression.", + "hash": "ade0f5ef31462024600ac17130a26e0429e27039" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-entity/index.js", + "line": 173, + "column": 57, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "e363af7116782fe1b4a06faa0cab60d826daebdf" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-postal-code/index.js", + "line": 10, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "b12c35e669c0ad8af41fe1dc3ffe994cf53198fa" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-postal-code/index.js", + "line": 26, + "column": 21, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'city' is defined but never used.", + "hash": "e892975b07863cec84647ba00d93ba913776e433" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-postal-code/index.js", + "line": 55, + "column": 57, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "4f3f46e4b736f4325e869cffbecbe1427939eae4" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/pick-rolling-date/index.js", + "line": 3, + "column": 57, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_e' is defined but never used.", + "hash": "1d6448401778e8c56554020fe5abd47851ed33f3" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/module/wopi-link/index.js", + "line": 21, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "eae499e4f6e9f43a9d17f9cd917cb6d3d97be25c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/export/download-export.js", + "line": 3, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'e' is defined but never used.", + "hash": "088fd383e7807e484aefc9825209bc7c8942bd22" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/homepage_widget/index.js", + "line": 9, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "2b4f1b7b1ec87616e72a89871f91845c16200435" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/location/index.js", + "line": 63, + "column": 48, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_e' is defined but never used.", + "hash": "2cafe722e433827869f1d0c381e2da4f9433d6a7" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js", + "line": 11, + "column": 29, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'arg2' is defined but never used.", + "hash": "8fd1732396723578115d9fad602083a340b37ff6" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js", + "line": 11, + "column": 35, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'arg3' is defined but never used.", + "hash": "84d8798e80b3b1444c63930125009c94a8a7cf64" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/App.vue", + "line": 79, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "29ea9ef3f1b2cb970e8103383bcde12a4ab66c25" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/App.vue", + "line": 101, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "b81ee6947049c6876f81410cfbb499dc43da4374" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 247, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'postAddressToPerson' is defined but never used.", + "hash": "8a41c437cf2b5554cbbe1704cd51f3102b3d5994" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 248, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'postAddressToHousehold' is defined but never used.", + "hash": "66dec84b2ece299daf21308e5e60d497ba442b27" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 490, + "column": 21, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"context\" prop.", + "hash": "0d3f40c47974a4371072b3b9ee04b197c830162d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 491, + "column": 21, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"context\" prop.", + "hash": "8e877b7e588c30e182f7b572bdb9685360f9cf99" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 508, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "5a3e3401bc3c765d91faaf4cfde57697af1262b7" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 525, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "35a741d90379574b9323279f5802193d0c98a9dc" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 553, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "c23d1ddf6c0d10ae97948e74aee9c14b9320b86c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 572, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "4322e81c6ea9d9734c680633a724d5bd4fabacb2" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 803, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "7928a6461b9d394c7d97f048933553936f7d8963" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress.vue", + "line": 852, + "column": 47, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "e5afdb8efccb5470a08dde48f755b1268fa947b5" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 93, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "68f5e1cf5c03f9ada59c9e0afca0b74c7f3fca4b" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 101, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "50d730f6109092baff2db66adc44dc1315e2bda2" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 109, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "573e4c041ce663f28b933d7a675c2a525aba644c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 117, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "293f845eeab515b1df4649d136c2d8219ed59c4d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 125, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "792310bc5def2c7b45f50da97cd8818d82862e8a" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 133, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "a69e5335393f67a83d89720af34a4385a7d7e665" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressMore.vue", + "line": 141, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "2d5a5e680ff207ad97c7e7b7d999064b561dfd8a" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 106, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "d52356f2af31d0167c02330ec22d09fbfa6b2b9f" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 114, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "c8e8e06f370f93bf05867e93b5f037dfa46937b1" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 128, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "9abaf71ca4b4f292b3b01e724d0a7733365e71f1" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 129, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "0b0743959778a9e3d93089b132608816ee4e6646" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 132, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "9759da7b7859b8ee8efaf74876430658ac6b6fe2" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 133, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "dba8be9a27ab74ec743b7d9e07c05d857b407dd3" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 134, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "9b1f5bce779aafc46b19d7a5d266eaa29f8f9be9" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 139, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "fe6fc4aea0994ba9da15b7c09d308842b67958cb" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 153, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "bd0e024fcad2e3f4566f15293e3c25c840f6dd3e" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 154, + "column": 37, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "596c4b180b926b7829f987384328bf5636cd367a" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 171, + "column": 59, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "5b41d5f9b45da074fb7bbbbd45e0da501da72071" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 172, + "column": 41, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "d92b92a25043244cca809bd129633b7e024e26b4" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 190, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "dd9a85ea740742d620e864796f67c5bff834486d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 191, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "e3e59960d0d50709a57b336f66b586710b774892" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 192, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "fe11b0e54396511e7b3b08615a78d22fc27e2fad" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/AddressSelection.vue", + "line": 222, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "63c14c2150c33ec701bc4a0ff94efde69537d490" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 96, + "column": 20, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "d2a9fdaeef0e2810f480022d4c6f99e4f76a818e" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 96, + "column": 20, + "ruleId": "vue/no-side-effects-in-computed-properties", + "message": "Unexpected side effect in \"cities\" computed property.", + "hash": "dd92a60a9b1ebefeb9a90941d45326fbfa483733" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 102, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "04be01ab638ce01f568fb0216929e65e1175ca23" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 110, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "8619c8e0b63e87d09268832f90e4fba06b87e41f" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 124, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "281f918da00635079501418b1e6b2c05b62eb4a7" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 125, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "c131b09fa67ab1d069f1d04a54582d6b0f206153" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 126, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "3d3a2a4add64c291b8f5f1cddd90a173cd6a819d" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 131, + "column": 21, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "ed48f4988914d7897018a2e06830a97e6740b3e8" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 145, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "744f3a7610d4d6015e50e25149bceffd6c6e2763" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 146, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "eaaaaee5fb2e324ffe0a68eefe340dabdf162324" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 147, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "2de47b4a4ddbe546b3fce9898af48b72853364bf" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 149, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "1e7b1ad55866f708baaca72dfa4ff26d6f8e5d21" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 152, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "84779331536ffceec8d4a8c5ca4307310b882549" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 161, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "0789999841be671a4d8ab080d6fdb679f843eb52" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 170, + "column": 51, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "bbb17afa114f016e2058d90aa32d2a625804f0d1" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 171, + "column": 33, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "5fbe407ceceb37bff2ac800ceddd7942540132f1" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 190, + "column": 55, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'reject' is defined but never used.", + "hash": "e2af91def877befbabef8e93deba4c58a3ee2ded" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 191, + "column": 37, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "ee8544ee45681a650ed7d4918ae979685cdd8f0f" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 210, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "5d9d2217c8c7e6571bc9f72a98ea5b370edb4968" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 211, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "6e04619b373c23c91f6c36c2aad314ac16cdb697" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 212, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "39df045639a62f64ccdb03a80e286bc3ad772587" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 213, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "c399a43fa797a8ce61c9d96a644a39cc84a387b7" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CitySelection.vue", + "line": 245, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "04337a07944caaa4819cfebcf29e1a7cbfdf248b" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CountrySelection.vue", + "line": 75, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "f2e288dcddf773ed3a79b238327af8a48961e861" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/AddAddress/CountrySelection.vue", + "line": 80, + "column": 13, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "836965dc8fa085f98d31f3ce261dcdf27d1ef6a4" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/DatePane.vue", + "line": 95, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "84e13d1fdc79f4568634a78df281adbe81739cbd" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/DatePane.vue", + "line": 103, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "1eed832462e52537402a2825655733f0f2d391d9" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/EditPane.vue", + "line": 155, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "b3a822914fcb5e2fcf28efc331a45b9205002eeb" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/components/EditPane.vue", + "line": 164, + "column": 17, + "ruleId": "vue/no-mutating-props", + "message": "Unexpected mutation of \"entity\" prop.", + "hash": "72c7d850f6cdeaf65b373a33234222f9766ee30b" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/index.js", + "line": 10, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "e39c8efb64c15a67efdd894e74c51129ca30cf09" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js", + "line": 22, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "c0178faf1e0af01e6445c761e083df5f19e314c8" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js", + "line": 86, + "column": 48, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_e' is defined but never used.", + "hash": "52a2051aee948783e053f102a066d4c51155cc54" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/HomepageWidget/DashboardWidgets/NewsItem.vue", + "line": 142, + "column": 57, + "ruleId": "@typescript-eslint/no-explicit-any", + "message": "Unexpected any. Specify a different type.", + "hash": "a68eeba7b2e1e603d83da0946c94cd221134aa99" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/components/OnTheFly.vue", + "line": 204, + "column": 22, + "ruleId": "vue/return-in-computed-property", + "message": "Expected to return a value in \"buttonMessage\" computed property.", + "hash": "b101c861dc11bc7024857fa2977118cb9f99c02c" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/OnTheFly/index.js", + "line": 12, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "9e6125f4fc387dc362c69cc6e3ce360eb2851f1b" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/PickEntity/PickEntity.vue", + "line": 59, + "column": 22, + "ruleId": "vue/require-valid-default-prop", + "message": "Type of the default value for 'suggested' prop must be a function.", + "hash": "fa03b9c71200c8e88be0b4f6543d091a5dc911e9" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/AddressDetails/Parts/AddressDetailsMap.vue", + "line": 24, + "column": 13, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'LatLngExpression' is defined but never used.", + "hash": "78f5a83dddf05b38aa9472ab93871e976719ef30" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Entity/GenderIconRenderBox.vue", + "line": 6, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'props' is assigned a value but never used.", + "hash": "29fe0a5d52e46c479aa2e7bb23fb55c53df7b22e" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/EntityWorkflow/ListWorkflow.vue", + "line": 141, + "column": 15, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'popoverList' is assigned a value but never used.", + "hash": "39112915614e2dbd8a6000cb44454c5dd3a1e7f1" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Modal.vue", + "line": 3, + "column": 9, + "ruleId": "vue/require-toggle-inside-transition", + "message": "The element inside `` is expected to have a `v-if` or `v-show` directive.", + "hash": "0594fb9d0984f4dd1612671aca21b571087ab8ee" + }, + { + "path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/Modal.vue", + "line": 59, + "column": 22, + "ruleId": "vue/require-valid-default-prop", + "message": "Type of the default value for 'modalDialogClass' prop must be a function.", + "hash": "51033a0b54bc839ce532e609bc58a2686818c895" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/page/accompanying_course_index/masonry.js", + "line": 4, + "column": 5, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'msnry' is assigned a value but never used.", + "hash": "37c52c5d1360a9339ba377f65e7f5671bcecb82a" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/page/person/suggest-names.js", + "line": 47, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'tags' is assigned a value but never used.", + "hash": "ae9bb2e0651c118ed9efd227e88b86cc83f5d80d" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StickyNav.vue", + "line": 116, + "column": 18, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "201f182769c6dfb87148b841e7d9b592be429669" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/index.js", + "line": 19, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "45a24a5a25333d674e2e8de8715e011c44d520fc" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/index.js", + "line": 42, + "column": 11, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "80ace30483979a840c9f6cbe0e8481bafe77708b" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkCreate/index.js", + "line": 12, + "column": 7, + "ruleId": "no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "812c02cd516013d189322ca62677793aadb99edf" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkCreate/index.js", + "line": 12, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "aaaaa63e7a60443b8cbf8191feb9142852ebdf1c" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/FormEvaluation.vue", + "line": 568, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'event' is defined but never used.", + "hash": "f541b65ab566783e6b04605fec31843ce06189d6" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/components/FormEvaluation.vue", + "line": 569, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'link' is defined but never used.", + "hash": "7772c8941702d45e1b447b81ba8fdc9f34c6f9aa" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourseWorkEdit/index.js", + "line": 12, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "138abd46734ddf8fe1ebdb530a2119b9052143b6" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/ExportFormActionGoalResult/App.vue", + "line": 282, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-expressions", + "message": "Expected an assignment or function call and instead saw an expression.", + "hash": "de3a6e2bb10a80a2bacba665be74266c7efc7d64" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/ExportFormActionGoalResult/index.js", + "line": 16, + "column": 9, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "b025959acb471750c92952656e7a60ba28f5da0a" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdMembersEditor/components/Positioning.vue", + "line": 82, + "column": 31, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is defined but never used.", + "hash": "aad0b0d7e4bc2ea9f0a0dd7b6c696a82da14f25a" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/HouseholdMembersEditor/index.js", + "line": 13, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "2f161e663689e3e4dfe2c53b0d64c91a4d2b1a60" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue", + "line": 263, + "column": 19, + "ruleId": "vue/return-in-computed-property", + "message": "Expected to return a value in \"refreshNetwork\" computed property.", + "hash": "2c1b08a49098c83b09058cedc0a962126e91e544" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue", + "line": 270, + "column": 7, + "ruleId": "vue/no-side-effects-in-computed-properties", + "message": "Unexpected side effect in \"legendLayers\" computed property.", + "hash": "760948d2187c853f17ac9a1bd7107e883092d4f4" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue", + "line": 281, + "column": 5, + "ruleId": "vue/no-dupe-keys", + "message": "Duplicate key 'checkedLayers'. May cause name collision in script or template tag.", + "hash": "447edb461e15e3ff5c60c8ecba88131e442539aa" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue", + "line": 353, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-expressions", + "message": "Expected an assignment or function call and instead saw an expression.", + "hash": "9cf656cbf1eb3d7cc0082e63adcd320b6093d14f" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/index.js", + "line": 20, + "column": 7, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'app' is assigned a value but never used.", + "hash": "9e94e6412b8a44e47bfe8e66218cad09cff5bed4" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AccompanyingPeriod/SetReferrer.vue", + "line": 42, + "column": 16, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'response' is defined but never used.", + "hash": "62de07b13c662e32332bb062038acee23978ea70" + }, + { + "path": "src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/AddPersons.vue", + "line": 356, + "column": 28, + "ruleId": "@typescript-eslint/no-unused-vars", + "message": "'_response' is defined but never used.", + "hash": "097e7788a2b5dea500b80b8a3cf968e57063a66a" + }, + { + "path": "src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/OnTheFly/ThirdParty.vue", + "line": 371, + "column": 21, + "ruleId": "@typescript-eslint/no-unused-expressions", + "message": "Expected an assignment or function call and instead saw an expression.", + "hash": "ed6f5ae90514bf9fc967f2eb7a3ce06344a5f8af" + } +] \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 183694b55..2e4915f63 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -112,20 +112,11 @@ lint: - export PATH="./node_modules/.bin:$PATH" script: - yarn install --ignore-optional - - apk add --no-cache jq - - eslint "**/*.{js,vue}" --format json | jq '[.[] | select(.messages | length > 0)]' > eslint-current.json - - new_errors=$(diff <(jq -S . eslint-baseline.json) <(jq -S . eslint-current.json)) - - | - if [ -n "$new_errors" ]; then - echo "New ESLint errors detected:" - echo "$new_errors" - exit 1 - else - echo "No new ESLint errors detected." - fi + - npx eslint-baseline "**/*.{js,vue}" cache: paths: - node_modules/ + # psalm_tests: # stage: Tests # image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82 diff --git a/eslint-baseline.json b/eslint-baseline.json deleted file mode 100644 index 1e1cc8359..000000000 --- a/eslint-baseline.json +++ /dev/null @@ -1,3337 +0,0 @@ -[ - { - "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": [] - } -] diff --git a/package.json b/package.json index 4f4879f3a..d86004981 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@ckeditor/ckeditor5-theme-lark": "^41.4.2", "@ckeditor/ckeditor5-vue": "^5.1.0", "@eslint/js": "^9.14.0", + "@luminateone/eslint-baseline": "^1.0.9", "@symfony/webpack-encore": "^4.1.0", "@tsconfig/node14": "^1.0.1", "@types/dompurify": "^3.0.5",