mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
fix linting script to make sure errors are reported
This commit is contained in:
parent
4d88787ba0
commit
da4dd07de1
3 changed files with 3 additions and 2 deletions
|
|
@ -79,7 +79,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint --ext .js --fix . && cd website/client && npm run lint",
|
"lint": "eslint --ext .js --fix . && cd website/client && npm run lint",
|
||||||
"lint-no-fix": "eslint --ext .js . && cd website/client && npm run lint --no-fix",
|
"lint-no-fix": "eslint --ext .js . && cd website/client && npm run lint-no-fix",
|
||||||
"test": "npm run lint && gulp test && gulp apidoc",
|
"test": "npm run lint && gulp test && gulp apidoc",
|
||||||
"test:build": "gulp test:prepare:build",
|
"test:build": "gulp test:prepare:build",
|
||||||
"test:api-v3": "gulp test:api-v3",
|
"test:api-v3": "gulp test:api-v3",
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"test:unit": "vue-cli-service test:unit --require ./tests/unit/helpers.js",
|
"test:unit": "vue-cli-service test:unit --require ./tests/unit/helpers.js",
|
||||||
"lint": "vue-cli-service lint .",
|
"lint": "vue-cli-service lint .",
|
||||||
|
"lint-no-fix": "vue-cli-service lint --no-fix .",
|
||||||
"postinstall": "node ./scripts/npm-postinstall.js"
|
"postinstall": "node ./scripts/npm-postinstall.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -802,7 +802,7 @@ export default {
|
||||||
} else if (sortBy === 'sortByHatchable') {
|
} else if (sortBy === 'sortByHatchable') {
|
||||||
groupKey = i => (i.isHatchable() ? 0 : 1);
|
groupKey = i => (i.isHatchable() ? 0 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return groupBy(pets, groupKey);
|
return groupBy(pets, groupKey);
|
||||||
},
|
},
|
||||||
mounts (animalGroup, hideMissing, sortBy, searchText) {
|
mounts (animalGroup, hideMissing, sortBy, searchText) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue