Merged in fix/linting (pull request #2708)

Fix/linting

* fix import issues and add lint check no-extraneous-dependencies
* fix use type HotelType instead of string

Approved-by: Anton Gunnarsson
This commit is contained in:
Joakim Jäderberg
2025-08-27 09:22:37 +00:00
parent 67bdf5bbcf
commit 80c3327419
55 changed files with 250 additions and 135 deletions

View File

@@ -33,7 +33,7 @@ export default defineConfig([
"no-unused-vars": "off",
"import/no-relative-packages": "error",
"simple-import-sort/imports": [
"error",
"warn",
{
groups: [
["^\\u0000"],

View File

@@ -1,5 +1,9 @@
const config = {
"*.{ts,tsx}": [() => "tsc -p tsconfig.json --noEmit", "prettier --write"],
"*.{ts,tsx}": [
() => "yarn lint",
() => "tsc -p tsconfig.json --noEmit",
"prettier --write",
],
"*.{json,md}": "prettier --write",
"*.{html,js,cjs,mjs,css}": "prettier --write",
}