Skip to content

Commit

Permalink
build(npm): fix husky et applique format
Browse files Browse the repository at this point in the history
Merge pull request #198 from ecolabdata/build/applique-format
  • Loading branch information
bonjourmauko authored Nov 29, 2023
2 parents 75b82be + 2081e62 commit af69b15
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ name: Run tests

on:
push:
branches: [ "main" ]
branches: ['main']
pull_request:
branches: [ "main" ]
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm run test_single_run
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm run test_single_run
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test_single_run": "vitest run",
"lint": "eslint . --ext .js,.ts,.vue,.json --ignore-path .gitignore",
"hint": "tsc --project tsconfig.dev.json",
"format": "prettier . --write",
"format": "prettier '**/*.{js,ts,vue,yml,yaml,json}' --write",
"prepare": "husky install"
},
"dependencies": {
Expand Down Expand Up @@ -68,6 +68,6 @@
"vitest": "^0.34.6"
},
"lint-staged": {
"*.{js,ts,vue,json}": "prettier --write"
"*.{js,ts,vue,yml,yaml,json}": "prettier --write"
}
}
4 changes: 3 additions & 1 deletion src/views/bouquets/BouquetEditView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ const availabilityEnum = {
}
const goToDatasetPage = (id) => {
const url = config.website.menu_items.find((link) => link.linkPage === '/datasets')
const url = config.website.menu_items.find(
(link) => link.linkPage === '/datasets'
)
return `${url.linkPage}/${id}`
}
Expand Down

0 comments on commit af69b15

Please sign in to comment.