Skip to content

Commit f125f69

Browse files
committed
setup husky & lint-staged
1 parent 51cae65 commit f125f69

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

lumigator/frontend/.husky/pre-commit

100644100755
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# .husky/pre-commit
2-
3-
npm test
4-
npm run lint-staged
1+
#!/bin/sh
2+
cd lumigator/frontend || exit 1
3+
npx lint-staged

lumigator/frontend/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
"lint": "eslint . --fix",
1616
"lint:fix": "eslint . --fix",
1717
"format": "prettier --write src/ e2e/",
18-
"prepare": "cd ../../ && husky install frontend/.husky"
18+
"prepare": "cd ../../ && husky install lumigator/frontend/.husky"
1919
},
2020
"lint-staged": {
21-
"*.{js, jsx,ts,tsx}": [
22-
"eslint --quiet --fix"
21+
"*.{js,jsx,ts,tsx,vue}": [
22+
"eslint --fix"
2323
],
24-
"*.{json,js,ts,jsx,tsx,html}": [
25-
"prettier --write --ignore-unknown"
24+
"*.{json,js,ts,jsx,tsx,vue,html,css,scss}": [
25+
"prettier --write"
2626
]
2727
},
2828
"dependencies": {

lumigator/frontend/src/components/common/DatasetViewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<i class="pi pi-search"></i>
4242
</InputIcon>
4343
<InputText v-model="filters['global'].value" placeholder="Keyword Search" />
44-
</IconField>
44+
</IconField>
4545
</div>
4646
</template>
4747
<template #empty> No items found. </template>

lumigator/frontend/src/components/views/Settings.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
href="https://mozilla-ai.github.io/lumigator/operations-guide/configuration.html#api-settings"
1313
class="learn-more-link"
1414
rel="noopener"
15-
target="_blank"
16-
>Learn more<span class="pi pi-arrow-up-right"></span>
15+
target="_blank"
16+
>Learn more<span class="pi pi-arrow-up-right"></span>
1717
</a>
1818
</p>
1919
</div>

0 commit comments

Comments
 (0)