Skip to content

Commit b750a90

Browse files
committed
Fix linting errors.
1 parent d2803b2 commit b750a90

File tree

16 files changed

+32
-204
lines changed

16 files changed

+32
-204
lines changed

.eslintrc.cjs

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1+
require("@rushstack/eslint-patch/modern-module-resolution");
2+
13
/* eslint-env node */
24
module.exports = {
35
root: true,
4-
parser: "@typescript-eslint/parser",
5-
plugins: ["import", "@typescript-eslint", "prettier"],
6+
parser: "vue-eslint-parser",
7+
plugins: ["import", "prettier"],
68
extends: [
9+
"prettier",
710
"eslint:recommended",
11+
"plugin:@typescript-eslint/eslint-recommended",
812
"plugin:import/recommended",
913
"plugin:import/typescript",
10-
"plugin:@typescript-eslint/eslint-recommended",
11-
"plugin:@typescript-eslint/recommended",
12-
"prettier",
14+
"plugin:vue/vue3-essential",
15+
// "plugin:@typescript-eslint/recommended",
16+
"@vue/eslint-config-prettier",
17+
"@vue/eslint-config-typescript",
1318
],
1419
parserOptions: {
1520
ecmaVersion: "latest",
@@ -44,9 +49,9 @@ module.exports = {
4449
},
4550
],
4651
},
47-
overrides: [
48-
{
49-
files: ["**/*.{ts,vue}"],
50-
},
51-
],
52+
// overrides: [
53+
// {
54+
// files: ["**/*.{ts,vue}"],
55+
// },
56+
// ],
5257
};

apps/frontend/core/.eslintrc.cjs

-6
This file was deleted.

apps/frontend/core/src/main.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,4 @@ import { routes } from "./routes";
33
import HotelList from "./components/HotelList.vue";
44
import { useHotelsStore } from "./stores/hotels.js";
55

6-
export {
7-
routes,
8-
HotelList,
9-
useHotelsStore
10-
};
11-
12-
6+
export { routes, HotelList, useHotelsStore };

apps/frontend/core/src/stores/hotels.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineStore } from "pinia";
22

3-
export const useHotelsStore = defineStore('hotels', () => {
3+
export const useHotelsStore = defineStore("hotels", () => {
44
const fetchHotels = async () => {
55
return await (await fetch("http://localhost:3000/hotels")).json();
66
};

apps/frontend/luggage/.eslintrc.cjs

-6
This file was deleted.

apps/frontend/luggage/src/main.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import "./assets/main.scss";
22
import { routes } from "./routes";
33

4-
export {
5-
routes,
6-
};
4+
export { routes };

apps/frontend/luggage/src/pages/LuggagePage.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<script setup lang="ts">
2-
</script>
1+
<script setup lang="ts"></script>
32

43
<template>
54
<h1>Luggage</h1>

apps/frontend/rooms/.eslintrc.cjs

-6
This file was deleted.

apps/frontend/rooms/src/main.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import "./assets/main.scss";
22
import { routes } from "./routes";
33

4-
export {
5-
routes,
6-
};
4+
export { routes };
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { Hotel } from "hotel-management-shared";
22
import { defineStore } from "pinia";
33

4-
export const useRoomsStore = defineStore('rooms', () => {
4+
export const useRoomsStore = defineStore("rooms", () => {
55
const fetchRoomsForHotel = async (hotelId: Hotel["id"]) => {
66
return await (await fetch(`http://localhost:3000/rooms/${hotelId}`)).json();
77
};
88

99
return { fetchRoomsForHotel };
10-
});
10+
});

apps/frontend/rooms/tsconfig.app.tsbuildinfo

-1
This file was deleted.

apps/frontend/shell/.eslintrc.cjs

-6
This file was deleted.

apps/frontend/shell/src/App.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ import { RouterLink, RouterView } from "vue-router";
1919
<RouterView />
2020

2121
<template #fallback>
22-
<div aria-busy="true">
23-
Loading...
24-
</div>
22+
<div aria-busy="true">Loading...</div>
2523
</template>
2624
</Suspense>
2725
</main>

libs/shared/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"compilerOptions": {
44
"module": "node16",
55
"rootDir": "./src",
6-
"outDir": "./dist"
6+
"outDir": "./dist",
7+
"declaration": true,
78
},
89
"include": ["src/**/*"]
910
}

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"esModuleInterop": true,
66
"target": "ES2020",
77
"module": "ES2020",
8-
"moduleResolution": "node"
8+
"moduleResolution": "node",
9+
"declaration": true
910
}
1011
}

0 commit comments

Comments
 (0)