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:
@@ -70,17 +70,17 @@ export class AcpHelper {
|
||||
accessControlResource: {
|
||||
iri: joinUrl(baseUrl, v4()),
|
||||
accessControl: policies ?
|
||||
[{
|
||||
iri: joinUrl(baseUrl, v4()),
|
||||
policy: [ ...policies ],
|
||||
}] :
|
||||
[],
|
||||
[{
|
||||
iri: joinUrl(baseUrl, v4()),
|
||||
policy: [ ...policies ],
|
||||
}] :
|
||||
[],
|
||||
memberAccessControl: memberPolicies ?
|
||||
[{
|
||||
iri: joinUrl(baseUrl, v4()),
|
||||
policy: [ ...memberPolicies ],
|
||||
}] :
|
||||
[],
|
||||
[{
|
||||
iri: joinUrl(baseUrl, v4()),
|
||||
policy: [ ...memberPolicies ],
|
||||
}] :
|
||||
[],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 global-require,@typescript-eslint/no-var-requires,@typescript-eslint/no-require-imports
|
||||
// eslint-disable-next-line ts/no-var-requires,ts/no-require-imports
|
||||
const dist = require('../../dist/logging/LogUtil');
|
||||
dist.setGlobalLoggerFactory(loggerFactory);
|
||||
} catch {
|
||||
|
||||
@@ -38,12 +38,10 @@ const portNames = [
|
||||
'BaseServerFactory',
|
||||
] as const;
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
// These are ports that are not allowed to change for various reasons
|
||||
const fixedPorts = {
|
||||
V6Migration: 6999,
|
||||
} as const;
|
||||
/* eslint-enable @typescript-eslint/naming-convention */
|
||||
|
||||
const socketNames = [
|
||||
// Unit
|
||||
|
||||
Reference in New Issue
Block a user