mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-28 14:27:54 +00:00
Enable the sort-keys eslint rule (#1746)
## Description: Enable the `sort-keys` eslint rule. Fixes #1629 ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [ ] I have read and accepted the CLA agreement (only required once).
This commit is contained in:
@@ -29,6 +29,7 @@ if (config.otelEnabled()) {
|
||||
// Add OTLP exporter for logs
|
||||
const logExporter = new OTLPLogExporter({
|
||||
url: `${config.otelEndpoint()}/v1/logs`,
|
||||
// eslint-disable-next-line sort-keys
|
||||
headers,
|
||||
});
|
||||
|
||||
@@ -56,6 +57,7 @@ const addSeverityFormat = winston.format((info) => {
|
||||
// Define your base/parent logger
|
||||
const logger = winston.createLogger({
|
||||
level: "info",
|
||||
/* eslint-disable sort-keys */
|
||||
format: winston.format.combine(
|
||||
winston.format.timestamp(),
|
||||
addSeverityFormat(),
|
||||
@@ -65,6 +67,7 @@ const logger = winston.createLogger({
|
||||
service: "openfront",
|
||||
environment: process.env.GAME_ENV ?? "prod",
|
||||
},
|
||||
/* eslint-enable sort-keys */
|
||||
transports: [
|
||||
new winston.transports.Console(),
|
||||
new OpenTelemetryTransportV3(),
|
||||
|
||||
Reference in New Issue
Block a user