mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Replace linting configurations
The previous package was outdated, preventing us from updating TS. This one also lints YAML and JSON, and applies many more rules to the test files, explaining all the changes in this PR.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { resetInternalLoggerFactory, getLoggerFor, setGlobalLoggerFactory } from '../../../src/logging/LogUtil';
|
||||
import { getLoggerFor, resetInternalLoggerFactory, setGlobalLoggerFactory } from '../../../src/logging/LogUtil';
|
||||
|
||||
let currentFactory: any;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import process from 'process';
|
||||
import { BaseLogger, WrappingLogger } from '../../../src/logging/Logger';
|
||||
import type { SimpleLogger, LogMetadata } from '../../../src/logging/Logger';
|
||||
import type { LogMetadata, SimpleLogger } from '../../../src/logging/Logger';
|
||||
|
||||
describe('Logger', (): void => {
|
||||
describe('a BaseLogger', (): void => {
|
||||
|
||||
@@ -7,6 +7,6 @@ describe('VoidLogger', (): void => {
|
||||
});
|
||||
|
||||
it('does nothing when log is invoked.', async(): Promise<void> => {
|
||||
expect(logger.log('debug', 'my message', { abc: true })).toBe(logger);
|
||||
expect(logger.log()).toBe(logger);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user