Skip to content

Commit

Permalink
deps: update to TypeScript 5
Browse files Browse the repository at this point in the history
The ESLint plugin now catches a few more errors; fix those too.
  • Loading branch information
digitalcora committed Dec 23, 2024
1 parent 1fe72ca commit 4db78a8
Show file tree
Hide file tree
Showing 15 changed files with 257 additions and 33 deletions.
2 changes: 1 addition & 1 deletion assets/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://jestjs.io/docs/configuration

/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable @typescript-eslint/no-require-imports */
/* global require, module */

const requireJSON5 = require("require-json5");
Expand Down
258 changes: 242 additions & 16 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
"terser-webpack-plugin": "^4.2.3",
"ts-jest": "^29.1.2",
"ts-loader": "^8.3.0",
"typescript": "^4.3.5",
"typescript-eslint": "^7.8.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.1",
"webpack": "^4.46.0",
"webpack-cli": "^4.7.2",
"whatwg-fetch": "^3.6.20"
Expand Down
2 changes: 1 addition & 1 deletion assets/src/apps/admin.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require("../../css/admin.scss");
import "../../css/admin.scss";

import React, { ComponentType } from "react";
import ReactDOM from "react-dom";
Expand Down
2 changes: 1 addition & 1 deletion assets/src/apps/v2/bus_eink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ initSentry("bus_eink_v2");
import initFullstory from "Util/fullstory";
initFullstory();

require("../../../css/bus_eink_v2.scss");
import "../../../css/bus_eink_v2.scss";

import React from "react";
import ReactDOM from "react-dom";
Expand Down
2 changes: 1 addition & 1 deletion assets/src/apps/v2/bus_shelter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ initSentry("bus_shelter");
import initFullstory from "Util/fullstory";
initFullstory();

require("../../../css/bus_shelter_v2.scss");
import "../../../css/bus_shelter_v2.scss";

import React from "react";
import ReactDOM from "react-dom";
Expand Down
2 changes: 1 addition & 1 deletion assets/src/apps/v2/busway.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ initSentry("busway_v2");
import initFullstory from "Util/fullstory";
initFullstory();

require("../../../css/busway_v2.scss");
import "../../../css/busway_v2.scss";

import React from "react";
import ReactDOM from "react-dom";
Expand Down
2 changes: 1 addition & 1 deletion assets/src/apps/v2/dup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ initSentry("dup_v2");
import initFullstory from "Util/fullstory";
initFullstory();

require("../../../css/dup_v2.scss");
import "../../../css/dup_v2.scss";

import React from "react";
import ReactDOM from "react-dom";
Expand Down
2 changes: 1 addition & 1 deletion assets/src/apps/v2/elevator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ initSentry("elevator");
import initFullstory from "Util/fullstory";
initFullstory();

require("../../../css/elevator_v2.scss");
import "../../../css/elevator_v2.scss";

import React from "react";
import ReactDOM from "react-dom";
Expand Down
2 changes: 1 addition & 1 deletion assets/src/apps/v2/gl_eink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ initSentry("gl_eink_v2");
import initFullstory from "Util/fullstory";
initFullstory();

require("../../../css/gl_eink_v2.scss");
import "../../../css/gl_eink_v2.scss";

import React from "react";
import ReactDOM from "react-dom";
Expand Down
Loading

0 comments on commit 4db78a8

Please sign in to comment.