Add script to package.json for eslint + take ts files into account with new baseline

This commit is contained in:
Julie Lenaerts 2024-12-11 14:24:53 +01:00
parent 22ce16ef49
commit 4cc254a3e5
5 changed files with 441 additions and 27 deletions

View File

@ -1,4 +1,20 @@
[
{
"path": "assets/translator.js",
"line": 4,
"column": 3,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'getLocale' is defined but never used.",
"hash": "4de7bfba61e745c3cf5323aad048092c7c17ccf8"
},
{
"path": "assets/translator.js",
"line": 5,
"column": 3,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'setLocale' is defined but never used.",
"hash": "a7eabf4524aa4b2a7fd30de6d1ce61a3623c00db"
},
{
"path": "docs/source/development/user-interface/js-functions/show_hide.js",
"line": 12,
@ -127,6 +143,38 @@
"message": "'postLocation' is defined but never used.",
"hash": "c4fc4177d62914f827e7a5c2cd0cb974b947e3f7"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/utils.ts",
"line": 4,
"column": 5,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'DateTime' is defined but never used.",
"hash": "fdf38ad15813c4a931b93f4a85db985ca71105fc"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/utils.ts",
"line": 14,
"column": 27,
"ruleId": "@typescript-eslint/no-empty-object-type",
"message": "The `{}` (\"empty object\") type allows any non-nullish value, including literals like `0` and `\"\"`.\n- If that's what you want, disable this lint rule with an inline comment or configure the 'allowObjectTypes' rule option.\n- If you want a type meaning \"any object\", you probably want `object` instead.\n- If you want a type meaning \"any value\", you probably want `unknown` instead.",
"hash": "9602ec11eda8f46ff5712d69dcd87419babcd6f0"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/utils.ts",
"line": 16,
"column": 20,
"ruleId": "@typescript-eslint/no-empty-object-type",
"message": "The `{}` (\"empty object\") type allows any non-nullish value, including literals like `0` and `\"\"`.\n- If that's what you want, disable this lint rule with an inline comment or configure the 'allowObjectTypes' rule option.\n- If you want a type meaning \"any object\", you probably want `object` instead.\n- If you want a type meaning \"any value\", you probably want `unknown` instead.",
"hash": "23f7a8a1c3cba955077ddbd604bad6805ce30ad2"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Calendar/store/utils.ts",
"line": 18,
"column": 19,
"ruleId": "@typescript-eslint/no-empty-object-type",
"message": "The `{}` (\"empty object\") type allows any non-nullish value, including literals like `0` and `\"\"`.\n- If that's what you want, disable this lint rule with an inline comment or configure the 'allowObjectTypes' rule option.\n- If you want a type meaning \"any object\", you probably want `object` instead.\n- If you want a type meaning \"any value\", you probably want `unknown` instead.",
"hash": "abbc89e186c74d0f71f45cfda31c490339e39078"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/Invite/Answer.vue",
"line": 95,
@ -207,6 +255,94 @@
"message": "Unexpected any. Specify a different type.",
"hash": "991397a66bbda97bd596a67f11e8caa98b53e517"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/index2.ts",
"line": 7,
"column": 10,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'useI18n' is defined but never used.",
"hash": "24cadd85d1ba9f16b2f68d2b2b14ef1db72ac1a6"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/index2.ts",
"line": 12,
"column": 11,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'app' is assigned a value but never used.",
"hash": "6422c0876b992a3c5174faa99ef06d8339b74b4e"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/store/index.ts",
"line": 46,
"column": 20,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'_' is defined but never used.",
"hash": "5bf7ba0b0200fb6788d50df669e6b7701f8a87bb"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/store/modules/calendarRanges.ts",
"line": 259,
"column": 62,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'_' is defined but never used.",
"hash": "a06407a3b44a8e5865525e37e7620d20100c1e32"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/store/modules/calendarRanges.ts",
"line": 350,
"column": 48,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'_' is defined but never used.",
"hash": "fabe51c847e3842b4a4fda0b581f10b466cbd098"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/store/modules/calendarRanges.ts",
"line": 374,
"column": 48,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'_' is defined but never used.",
"hash": "7547f6801ac63196c32ffc61d2be7ad5bf113cc8"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/store/modules/fullcalendar.ts",
"line": 57,
"column": 32,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'_' is defined but never used.",
"hash": "a733a5edfe4c434ed63682bcbd5fe65f175a1b85"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/store/modules/fullcalendar.ts",
"line": 64,
"column": 32,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'_' is defined but never used.",
"hash": "d83b1879b5fc6179c045ad1981421f46a7cbbd56"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/store/modules/fullcalendar.ts",
"line": 71,
"column": 32,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'_' is defined but never used.",
"hash": "222eed84495212735a60fa05e0c7f298c7bc33e1"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/store/modules/fullcalendar.ts",
"line": 72,
"column": 26,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'_' is defined but never used.",
"hash": "0cf85eccce08b65a8590f7318cace58cbb21ea08"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/MyCalendarRange/store/modules/me.ts",
"line": 9,
"column": 6,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'Context' is defined but never used.",
"hash": "be22e3a53da2ea78944f0e3e8409b8eba957ffa9"
},
{
"path": "src/Bundle/ChillCalendarBundle/Resources/public/vuejs/_components/CalendarUserSelector/CalendarUserSelector.vue",
"line": 108,
@ -295,6 +431,14 @@
"message": "Unexpected mutation of \"users\" prop.",
"hash": "0b66e38f0c0bbe17aa7c548dc127be033133ce06"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/js/async-upload/uploader.ts",
"line": 6,
"column": 7,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'URL_POST' is assigned a value but never used.",
"hash": "9216fdae92adfabcddd8f915195337eb06ead048"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/downloader.js",
"line": 8,
@ -343,6 +487,14 @@
"message": "'error' is defined but never used.",
"hash": "e26e5e101e90d2b7ee84d6f5de8c819e52129c17"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/index.ts",
"line": 29,
"column": 14,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'vm' is defined but never used.",
"hash": "8e7f5e89dd72c54459cf82156389b88988f97d63"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/async_upload/uploader.js",
"line": 39,
@ -431,6 +583,54 @@
"message": "'e' is defined but never used.",
"hash": "27fd905f7750f1ee727f8c8fa5bbc12493a37c54"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/button_download/index.ts",
"line": 3,
"column": 8,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'DocumentActionButtonsGroup' is defined but never used.",
"hash": "385b162a454092801fdc98df75354475eeeedc67"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/button_download/index.ts",
"line": 4,
"column": 24,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'StoredObjectStatusChange' is defined but never used.",
"hash": "59372c9c257957b6ad6edc6db6d6a6a276f66145"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/button_download/index.ts",
"line": 5,
"column": 10,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'defineComponent' is defined but never used.",
"hash": "5ab301967629c4f1f1d451233f4378ab87255220"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/button_download/index.ts",
"line": 11,
"column": 55,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'e' is defined but never used.",
"hash": "ab73a104ee8d027dd16a433ef33bfd379ce59827"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/document_action_buttons_group/index.ts",
"line": 5,
"column": 10,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'is_object_ready' is defined but never used.",
"hash": "2b2312921b3a9ced3b6307301ea2777edf17280b"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/module/document_action_buttons_group/index.ts",
"line": 10,
"column": 55,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'e' is defined but never used.",
"hash": "c5322ffbb276330255aed8133207cb4d6c810990"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentActionButtonsGroup.vue",
"line": 80,
@ -479,6 +679,22 @@
"message": "Expected an assignment or function call and instead saw an expression.",
"hash": "c5f5d0e73bd179d79b60b53a3dc1c6d676bee287"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/index.ts",
"line": 2,
"column": 1,
"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": "b60ce5d41e38f02a016f25170e065e86fd7863ec"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DocumentSignature/index.ts",
"line": 34,
"column": 7,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'app' is assigned a value but never used.",
"hash": "63c8d2e65a7103f786ce1619a447eee56d2e06ee"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/DropFileWidget/DropFileWidget.vue",
"line": 3,
@ -551,6 +767,14 @@
"message": "'WopiEditButton' is defined but never used.",
"hash": "80cb06a18ac4db47e8d120103704ec6988696b79"
},
{
"path": "src/Bundle/ChillDocStoreBundle/Resources/public/vuejs/StoredObjectButton/helpers.ts",
"line": 3,
"column": 5,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'StoredObjectStatus' is defined but never used.",
"hash": "e868cee022cd1499bb54f7b5503a8a822773e097"
},
{
"path": "src/Bundle/ChillJobBundle/src/Resources/public/module/cv_edit/index.js",
"line": 7,
@ -671,6 +895,70 @@
"message": "'e' is defined but never used.",
"hash": "a78b1ecd6fe7ca192d7f00aee8b270d435a9042a"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/date.ts",
"line": 73,
"column": 5,
"ruleId": "prefer-const",
"message": "'cal' is never reassigned. Use 'const' instead.",
"hash": "53586ea7ec719f07750a8874db79f5e76583d5e0"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/date.ts",
"line": 79,
"column": 5,
"ruleId": "prefer-const",
"message": "'time' is never reassigned. Use 'const' instead.",
"hash": "19821279c0b2d7e69418db6877c317f8c6e2dacc"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/chill/js/date.ts",
"line": 85,
"column": 5,
"ruleId": "prefer-const",
"message": "'offset' is never reassigned. Use 'const' instead.",
"hash": "244b65de0ab0791ec89219058c5cb4f2e11622c7"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts",
"line": 176,
"column": 25,
"ruleId": "@typescript-eslint/no-explicit-any",
"message": "Unexpected any. Specify a different type.",
"hash": "78974307acb7b584f0c2196fbb47fc914b5c7a32"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts",
"line": 186,
"column": 9,
"ruleId": "prefer-const",
"message": "'promises' is never reassigned. Use 'const' instead.",
"hash": "2e178f566f5da9822a5dd46b29738829fbd1adf7"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts",
"line": 232,
"column": 26,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'response' is defined but never used.",
"hash": "0a036a266bd7bba398df10163e9704e6ea6167f3"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts",
"line": 240,
"column": 28,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'response' is defined but never used.",
"hash": "86c054fe1edcb6b24e6d0aefd64cd445e7614a52"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.ts",
"line": 260,
"column": 5,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'response' is defined but never used.",
"hash": "a45a603d1877899ba33744991bc21cfa4bedb17d"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/lib/download-report/download-report.js",
"line": 18,
@ -719,6 +1007,14 @@
"message": "'tabs' is assigned a value but never used.",
"hash": "750c361cd41b0d42baa186d7e505dde80db12dd3"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/module/address-details/index.ts",
"line": 3,
"column": 10,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'createI18n' is defined but never used.",
"hash": "921ae29ccf48f99622b40b8d8eb047ca4dffe35b"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/module/blur/index.js",
"line": 9,
@ -775,6 +1071,54 @@
"message": "'popoverList' is assigned a value but never used.",
"hash": "2fd1da06ffc0a1025552cd02b7838cb5ee70006c"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/module/ckeditor5/index.ts",
"line": 7,
"column": 16,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'editor' is defined but never used.",
"hash": "a1ee37171b35396754af104e4815484e1bd2a5ec"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/module/collection/index.ts",
"line": 53,
"column": 35,
"ruleId": "@typescript-eslint/no-explicit-any",
"message": "Unexpected any. Specify a different type.",
"hash": "3d7c37e1a8d8c13d427dfa5861ac8e3ca0fad093"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/module/collection/index.ts",
"line": 133,
"column": 30,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'target' is defined but never used.",
"hash": "7db7b2f692341951595ec738e8b45562465e7bf7"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/module/collection/index.ts",
"line": 141,
"column": 5,
"ruleId": "@typescript-eslint/prefer-for-of",
"message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.",
"hash": "cd5fc994be294fde5fef27ba841c9af454b81dc0"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/module/collection/index.ts",
"line": 153,
"column": 5,
"ruleId": "@typescript-eslint/prefer-for-of",
"message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.",
"hash": "381830dd078845aeab5ea366757541cd7c77ca3f"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/module/collection/index.ts",
"line": 162,
"column": 9,
"ruleId": "@typescript-eslint/prefer-for-of",
"message": "Expected a `for-of` loop instead of a `for` loop with this simple iteration.",
"hash": "768b1976fb935d4a4b0890f00be2299b7ff60170"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/module/disable-buttons/index.js",
"line": 9,
@ -1607,6 +1951,22 @@
"message": "Type of the default value for 'modalDialogClass' prop must be a function.",
"hash": "51033a0b54bc839ce532e609bc58a2686818c895"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_js/i18n.ts",
"line": 60,
"column": 35,
"ruleId": "@typescript-eslint/no-explicit-any",
"message": "Unexpected any. Specify a different type.",
"hash": "61fa9887fddae8f7c4fd60cd21827fb034d5bb7f"
},
{
"path": "src/Bundle/ChillMainBundle/Resources/public/vuejs/_js/i18n.ts",
"line": 66,
"column": 9,
"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": "370ce59576610d7a292501effe428366011585f4"
},
{
"path": "src/Bundle/ChillPersonBundle/Resources/public/page/accompanying_course_index/masonry.js",
"line": 4,
@ -1975,6 +2335,46 @@
"message": "Expected an assignment or function call and instead saw an expression.",
"hash": "ed6f5ae90514bf9fc967f2eb7a3ce06344a5f8af"
},
{
"path": "src/Bundle/ChillWopiBundle/src/Resources/public/module/pending/index.ts",
"line": 4,
"column": 3,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'StoredObjectStatus' is defined but never used.",
"hash": "63f8c4572293916850d6165647774b27d4b732c6"
},
{
"path": "src/Bundle/ChillWopiBundle/src/Resources/public/module/pending/index.ts",
"line": 5,
"column": 3,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'StoredObjectStatusChange' is defined but never used.",
"hash": "a87c178e3eb5999bf0f46b3fa1c6da77e1be08b9"
},
{
"path": "src/Bundle/ChillWopiBundle/src/Resources/public/module/pending/index.ts",
"line": 30,
"column": 61,
"ruleId": "@typescript-eslint/no-unused-vars",
"message": "'e' is defined but never used.",
"hash": "02953121583f4f73742a19adab099ab63df9076e"
},
{
"path": "src/Bundle/ChillWopiBundle/src/Resources/public/module/pending/index.ts",
"line": 31,
"column": 32,
"ruleId": "@typescript-eslint/no-explicit-any",
"message": "Unexpected any. Specify a different type.",
"hash": "af48e21a1651b6017ede882dab249c00a818a44d"
},
{
"path": "src/Bundle/ChillWopiBundle/src/Resources/public/module/pending/index.ts",
"line": 37,
"column": 16,
"ruleId": "@typescript-eslint/no-explicit-any",
"message": "Unexpected any. Specify a different type.",
"hash": "7513ea552a0a649ce4ab93b6cf9d40bfef4f68d9"
},
{
"path": "webpack.config.js",
"line": 77,

View File

@ -7,8 +7,12 @@ Commands
--------
To run ESLint, you can simply use the ``eslint`` command within the chill-bundles directory.
This runs eslint **not** taking the baseline into account, thus showing all existing errors in the project.
Interesting options are:
A script was also added to package.json allowing you to execute ``yarn run eslint``.
This will run eslint, but **taking the baseline into account**, thus only alerting to newly created errors.
Interesting options that can be used in combination with eslint are:
- ``--quiet`` to only get errors and silence the warnings
- ``--fix`` to have ESLint fix what it can, automatically. This will not fix everything.

View File

@ -80,7 +80,8 @@
"dev": "encore dev",
"prettier": "prettier --write \"**/*.{js,ts,vue}\"",
"watch": "encore dev --watch",
"build": "encore production --progress"
"build": "encore production --progress",
"eslint": "npx eslint-baseline \"**/*.{js,ts,vue}\""
},
"private": true
}

View File

@ -1,10 +1,21 @@
module.exports = function(encore)
{
module.exports = function (encore) {
encore.addAliases({
ChillDocStoreAssets: __dirname + '/Resources/public'
ChillDocStoreAssets: __dirname + "/Resources/public",
});
encore.addEntry('mod_async_upload', __dirname + '/Resources/public/module/async_upload/index.ts');
encore.addEntry('mod_document_action_buttons_group', __dirname + '/Resources/public/module/document_action_buttons_group/index');
encore.addEntry('mod_document_download_button', __dirname + '/Resources/public/module/button_download/index');
encore.addEntry('vue_document_signature', __dirname + '/Resources/public/vuejs/DocumentSignature/index');
encore.addEntry(
"mod_async_upload",
__dirname + "/Resources/public/module/async_upload/index.ts",
);
encore.addEntry(
"mod_document_action_buttons_group",
__dirname + "/Resources/public/module/document_action_buttons_group/index",
);
encore.addEntry(
"mod_document_download_button",
__dirname + "/Resources/public/module/button_download/index",
);
encore.addEntry(
"vue_document_signature",
__dirname + "/Resources/public/vuejs/DocumentSignature/index",
);
};

View File

@ -1,17 +1,15 @@
module.exports = function(encore, chillEntries)
{
let
dispositif_edit_file = __dirname + '/Resources/public/module/dispositif_edit/index.js',
personal_situation_edit_file = __dirname + '/Resources/public/module/personal_situation/index.js',
cv_edit_file = __dirname + '/Resources/public/module/cv_edit/index.js',
immersion_edit_file = __dirname + '/Resources/public/module/immersion_edit/index.js',
images = __dirname + '/Resources/public/images/index.js'
;
encore.addEntry('dispositifs_edit', dispositif_edit_file);
encore.addEntry('personal_situation_edit', personal_situation_edit_file);
encore.addEntry('immersion_edit', immersion_edit_file);
encore.addEntry('images', images);
encore.addEntry('cs_cv', cv_edit_file);
module.exports = function (encore, chillEntries) {
let dispositif_edit_file =
__dirname + "/Resources/public/module/dispositif_edit/index.js",
personal_situation_edit_file =
__dirname + "/Resources/public/module/personal_situation/index.js",
cv_edit_file = __dirname + "/Resources/public/module/cv_edit/index.js",
immersion_edit_file =
__dirname + "/Resources/public/module/immersion_edit/index.js",
images = __dirname + "/Resources/public/images/index.js";
encore.addEntry("dispositifs_edit", dispositif_edit_file);
encore.addEntry("personal_situation_edit", personal_situation_edit_file);
encore.addEntry("immersion_edit", immersion_edit_file);
encore.addEntry("images", images);
encore.addEntry("cs_cv", cv_edit_file);
};