diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7e86207747..1268bd4e4e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,5 +20,5 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v3 - name: Frontend code formatting check (Prettier) - run: npm install prettier@~3.1.0 && npm run format:check - working-directory: ./frontend \ No newline at end of file + run: npm install prettier@~3.3.3 && npm run format:check + working-directory: ./frontend diff --git a/contrib/gn_module_occhab/frontend/app/components/occhab-map-form/occhab-form.component.html b/contrib/gn_module_occhab/frontend/app/components/occhab-map-form/occhab-form.component.html index bd02787501..f695028b7d 100644 --- a/contrib/gn_module_occhab/frontend/app/components/occhab-map-form/occhab-form.component.html +++ b/contrib/gn_module_occhab/frontend/app/components/occhab-map-form/occhab-form.component.html @@ -476,9 +476,9 @@
[parentFormControl]=" occHabForm.stationForm .get('habitats') - .controls[occHabForm.currentEditingHabForm].get( - 'id_nomenclature_community_interest' - ) + .controls[ + occHabForm.currentEditingHabForm + ].get('id_nomenclature_community_interest') " [items]="storeService.nomenclatureItems.HAB_INTERET_COM" comparedKey="id_nomenclature" @@ -515,9 +515,9 @@
[parentFormControl]=" occHabForm.stationForm .get('habitats') - .controls[occHabForm.currentEditingHabForm].get( - 'id_nomenclature_determination_type' - ) + .controls[ + occHabForm.currentEditingHabForm + ].get('id_nomenclature_determination_type') " [items]="storeService.nomenclatureItems.DETERMINATION_TYP_HAB" comparedKey="id_nomenclature" @@ -533,9 +533,9 @@
[parentFormControl]=" occHabForm.stationForm .get('habitats') - .controls[occHabForm.currentEditingHabForm].get( - 'id_nomenclature_collection_technique' - ) + .controls[ + occHabForm.currentEditingHabForm + ].get('id_nomenclature_collection_technique') " [items]="storeService.nomenclatureItems.TECHNIQUE_COLLECT_HAB" comparedKey="id_nomenclature" diff --git a/frontend/.prettierrc b/frontend/.prettierrc index ec3bd2eb2b..6a87cf7eec 100644 --- a/frontend/.prettierrc +++ b/frontend/.prettierrc @@ -8,5 +8,13 @@ "trailingComma": "es5", "singleAttributePerLine": true, "bracketSameLine": false, - "htmlWhitespaceSensitivity": "ignore" + "htmlWhitespaceSensitivity": "ignore", + "overrides": [ + { + "files": ["*.html"], + "options": { + "trailingComma": "none" + } + } + ] }