From c09f863d58def1aba39a0c34156f9174e2b9204a Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Fri, 14 Jun 2024 15:42:45 +0100 Subject: [PATCH] refactor: Remove unused imports and update eslint configuration --- Examples/fluentd/index.ts | 27 --------------------------- eslint.config.js | 2 +- 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 Examples/fluentd/index.ts diff --git a/Examples/fluentd/index.ts b/Examples/fluentd/index.ts deleted file mode 100644 index e232a79db3..0000000000 --- a/Examples/fluentd/index.ts +++ /dev/null @@ -1,27 +0,0 @@ -// This app will log all the logs to the docker-container fluentd that's running in development. -// You can find the details of the docker container in this file: /docker-compose.dev.yml -// This docker container is not run in production because there is no need to, customers will run fluentd on their own side in production. - -import express from "express"; -const FluentClient = require("@fluent-org/logger").FluentClient; -const app = express(); - -// The 2nd argument can be omitted. Here is a default value for options. -const logger: FluentClient = new FluentClient("fluentd.test", { - socket: { - host: "localhost", - port: 24224, - timeout: 3000, // 3 seconds - }, -}); - -app.get("/", (request, response) => { - logger.emit("follow", { from: "userA", to: "userB" }); - response.send("Hello World!"); -}); - -const port = 7856; - -app.listen(port, () => { - console.log("Listening on " + port); -}); diff --git a/eslint.config.js b/eslint.config.js index 2ff0c36e5f..d6bbf850ba 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -36,7 +36,7 @@ export default tseslint.config( "unused-imports": unusedImports, react: react, }, - + rules: { "react/prop-types": "off", // TODO: Remove this rule "no-control-regex": "off", // TODO: Remove this rule