mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Enable prefer-global rules
This commit is contained in:
parent
c24e6d5a18
commit
c65096020e
@ -50,8 +50,10 @@ module.exports = {
|
|||||||
|
|
||||||
'jsdoc/no-multi-asterisks': [ 'error', { allowWhitespace: true }],
|
'jsdoc/no-multi-asterisks': [ 'error', { allowWhitespace: true }],
|
||||||
|
|
||||||
'node/prefer-global/buffer': 'off',
|
'node/prefer-global/buffer': [ 'error', 'always' ],
|
||||||
'node/prefer-global/process': 'off',
|
'node/prefer-global/console': [ 'error', 'always' ],
|
||||||
|
'node/prefer-global/process': [ 'error', 'always' ],
|
||||||
|
'node/prefer-global/url': [ 'error', 'always' ],
|
||||||
|
|
||||||
'style/array-bracket-spacing': [ 'error', 'always', {
|
'style/array-bracket-spacing': [ 'error', 'always', {
|
||||||
singleValue: true,
|
singleValue: true,
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import type { Server } from 'node:http';
|
import type { Server } from 'node:http';
|
||||||
import { URL } from 'node:url';
|
|
||||||
import { promisify } from 'node:util';
|
import { promisify } from 'node:util';
|
||||||
import { getLoggerFor } from '../logging/LogUtil';
|
import { getLoggerFor } from '../logging/LogUtil';
|
||||||
import { isHttpsServer } from '../server/HttpServerFactory';
|
import { isHttpsServer } from '../server/HttpServerFactory';
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import cluster from 'node:cluster';
|
import cluster from 'node:cluster';
|
||||||
import process from 'node:process';
|
|
||||||
import type { LogLevel } from './LogLevel';
|
import type { LogLevel } from './LogLevel';
|
||||||
|
|
||||||
export interface LogMetadata {
|
export interface LogMetadata {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import { URL } from 'node:url';
|
|
||||||
import type { ResourceIdentifier } from '../../http/representation/ResourceIdentifier';
|
import type { ResourceIdentifier } from '../../http/representation/ResourceIdentifier';
|
||||||
import { errorTermsToMetadata } from '../errors/HttpErrorUtil';
|
import { errorTermsToMetadata } from '../errors/HttpErrorUtil';
|
||||||
import { InternalServerError } from '../errors/InternalServerError';
|
import { InternalServerError } from '../errors/InternalServerError';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import process from 'node:process';
|
|
||||||
import { BaseLogger, WrappingLogger } from '../../../src/logging/Logger';
|
import { BaseLogger, WrappingLogger } from '../../../src/logging/Logger';
|
||||||
import type { LogMetadata, SimpleLogger } from '../../../src/logging/Logger';
|
import type { LogMetadata, SimpleLogger } from '../../../src/logging/Logger';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user