diff --git a/atciss-frontend/eslint.config.js b/atciss-frontend/eslint.config.js index 94c274a1..49a1738b 100644 --- a/atciss-frontend/eslint.config.js +++ b/atciss-frontend/eslint.config.js @@ -22,6 +22,7 @@ export default tseslint.config( rules: { "react/no-unknown-property": ["error", { ignore: ["sx"] }], "react/prop-types": ["error", { ignore: ["pane"] }], + "@typescript-eslint/no-invalid-void-type": "off", }, }, ) diff --git a/atciss-frontend/src/services/api.ts b/atciss-frontend/src/services/api.ts index 45d42b22..00c9111b 100644 --- a/atciss-frontend/src/services/api.ts +++ b/atciss-frontend/src/services/api.ts @@ -124,7 +124,7 @@ export const api = createApi({ }), }), - areas: builder.query({ + areas: builder.query({ query: () => ({ url: "areas", }), @@ -144,7 +144,7 @@ export const api = createApi({ // }), // }), - controllers: builder.query({ + controllers: builder.query({ query: () => ({ url: "vatsim/controllers", }), @@ -194,13 +194,13 @@ export const api = createApi({ params: icaoList.map((icao) => ["icao", icao]), }), }), - notamsSeen: builder.query({ + notamsSeen: builder.query({ query: () => ({ url: "notam/read", }), providesTags: ["notamSeen"], }), - notamSeen: builder.mutation({ + notamSeen: builder.mutation({ query: (id) => ({ url: "notam/read", params: { id }, @@ -208,7 +208,7 @@ export const api = createApi({ }), invalidatesTags: ["notamSeen"], }), - notamUnseen: builder.mutation({ + notamUnseen: builder.mutation({ query: (id) => ({ url: "notam/read", params: { id }, @@ -217,7 +217,7 @@ export const api = createApi({ invalidatesTags: ["notamSeen"], }), - sectors: builder.query({ + sectors: builder.query({ query: () => ({ url: "airspace", }),