Skip to content

Commit

Permalink
Fix(linter): match prettier version in the CI with one in package.json (
Browse files Browse the repository at this point in the history
#3291)

* fix: lint.yml --> adjust github prettier to package.json version
* lint: run linter
  • Loading branch information
edelclaux authored Dec 20, 2024
1 parent e0ca4d0 commit aff66d2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: npm install prettier@~3.3.3 && npm run format:check
working-directory: ./frontend
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@ <h5 class="card-header bg-primary text-white">
[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"
Expand Down Expand Up @@ -515,9 +515,9 @@ <h5 class="card-header bg-primary text-white">
[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"
Expand All @@ -533,9 +533,9 @@ <h5 class="card-header bg-primary text-white">
[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"
Expand Down
10 changes: 9 additions & 1 deletion frontend/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@
"trailingComma": "es5",
"singleAttributePerLine": true,
"bracketSameLine": false,
"htmlWhitespaceSensitivity": "ignore"
"htmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": ["*.html"],
"options": {
"trailingComma": "none"
}
}
]
}

0 comments on commit aff66d2

Please sign in to comment.