Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(npm): fix husky et applique format #198

Merged
merged 4 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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