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

Lines changed: 15 additions & 10 deletions
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

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/frontend/core/src/main.ts

Lines changed: 1 addition & 7 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/frontend/luggage/src/main.ts

Lines changed: 1 addition & 3 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/frontend/rooms/src/main.ts

Lines changed: 1 addition & 3 deletions
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 };
Lines changed: 2 additions & 2 deletions
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+
});

0 commit comments

Comments
 (0)