Skip to content

Commit

Permalink
Fix ESLint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-01 committed Nov 28, 2023
1 parent 4c4e332 commit dee53a7
Show file tree
Hide file tree
Showing 8 changed files with 353 additions and 345 deletions.
10 changes: 5 additions & 5 deletions traffic/v2/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { APITrafficServerGameName } from "./server";
import type { APITrafficServerGameName } from './server';

export * from "./server";
export * from "./traffic";
export * from './server';
export * from './traffic';

export const APITrafficVersion = "2" as const;
export const APITrafficVersion = '2' as const;

export const APITrafficRoutes = {
/**
Expand All @@ -13,7 +13,7 @@ export const APITrafficRoutes = {
* @returns APIResponse<APITrafficServers>
*/
servers() {
return "/public/servers.json" as const;
return '/public/servers.json' as const;
},

/**
Expand Down
2 changes: 1 addition & 1 deletion traffic/v2/server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* A short name of a game map type.
*/
export type APITrafficServerGameName = "ets2" | "promods" | "ats";
export type APITrafficServerGameName = 'ets2' | 'promods' | 'ats';

/**
* Basic information of a TruckersMP server.
Expand Down
16 changes: 8 additions & 8 deletions traffic/v2/traffic.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { APITrafficServer } from "./server";
import type { APITrafficServer } from './server';

/**
* The congestion severity of the given location.
*/
export type APITrafficLocationSeverity =
| "Empty"
| "Low"
| "Moderate"
| "Congested"
| "Heavy";
| 'Empty'
| 'Low'
| 'Moderate'
| 'Congested'
| 'Heavy';

/**
* Information about a traffic location on the map.
Expand Down Expand Up @@ -54,7 +54,7 @@ export interface APITrafficServerTop {
* Basic information of a TruckersMP server.
* @see https://truckersmp.com/developers/api#operation/get-servers
*/
server?: Omit<APITrafficServer, "urls">;
server?: Omit<APITrafficServer, 'urls'>;

/**
* 8 busiest locations on the map (descending order).
Expand All @@ -77,7 +77,7 @@ export type APITrafficServerTraffic =
* Basic information of a TruckersMP server.
* @see https://truckersmp.com/developers/api#operation/get-servers
*/
server: Omit<APITrafficServer, "urls">;
server: Omit<APITrafficServer, 'urls'>;

/**
* All locations on the map.
Expand Down
2 changes: 1 addition & 1 deletion web/v2/ban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface APIPlayerBan {
* Name of the admin that banned the user. This field is no longer provided.
* @see https://forum.truckersmp.com/index.php?/topic/112993-website-v221-release/#comment-1111277
*/
adminName: "Game Moderator";
adminName: 'Game Moderator';

/**
* @deprecated - v2.21.1.0
Expand Down
4 changes: 2 additions & 2 deletions web/v2/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface APIGameEventType {
/**
* The event's type key.
*/
key: "convoy" | "truck_show" | "truck_show_and_convoy";
key: 'convoy' | 'truck_show' | 'truck_show_and_convoy';

/**
* The event's type name.
Expand Down Expand Up @@ -305,7 +305,7 @@ export interface APIGameEvent {
* The event's required DLCs.
*
* - Empty array when no DLCs are required;
* - Record<string, string> when 1 or more DLCs are required, where the key is the Steam app ID and value is the DLC's name.
* - Record<string, string> when DLCs are required, where the key is the Steam app ID and value is the DLC's name.
*/
dlcs: Record<string, string> | [];

Expand Down
Loading

0 comments on commit dee53a7

Please sign in to comment.