mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Enable global-require rule
This commit is contained in:
parent
c96b60d4d3
commit
73fbe80cff
@ -14,6 +14,7 @@ module.exports = {
|
||||
'function-call-argument-newline': [ 'error', 'consistent' ],
|
||||
'function-paren-newline': [ 'error', 'consistent' ],
|
||||
'getter-return': [ 'error', { allowImplicit: true }],
|
||||
'global-require': 'error',
|
||||
'grouped-accessor-pairs': [ 'error', 'getBeforeSet' ],
|
||||
'guard-for-in': 'error',
|
||||
'line-comment-position': [ 'error', { position: 'above' }],
|
||||
|
@ -12,7 +12,7 @@ export default async function(): Promise<void> {
|
||||
// Also set the logger factory of transpiled JS modules
|
||||
// (which are instantiated by Components.js)
|
||||
try {
|
||||
// eslint-disable-next-line ts/no-var-requires,ts/no-require-imports
|
||||
// eslint-disable-next-line global-require,ts/no-var-requires,ts/no-require-imports
|
||||
const dist = require('../../dist/logging/LogUtil');
|
||||
dist.setGlobalLoggerFactory(loggerFactory);
|
||||
} catch {
|
||||
|
Loading…
x
Reference in New Issue
Block a user