mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Update @antfu/eslint-config dependency to 2.11.4
This commit is contained in:
parent
fa060b86f3
commit
7abca33b67
@ -42,4 +42,10 @@ module.exports = antfu.default(
|
|||||||
'unicorn/filename-case': 'off',
|
'unicorn/filename-case': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
files: [ '**/*.md' ],
|
||||||
|
rules: {
|
||||||
|
'no-irregular-whitespace': 'off',
|
||||||
|
},
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
@ -16,6 +16,10 @@ module.exports = {
|
|||||||
kebabCase: true,
|
kebabCase: true,
|
||||||
snakeCase: false,
|
snakeCase: false,
|
||||||
},
|
},
|
||||||
|
ignore: [
|
||||||
|
// CODE_OF_CONDUCT.md, etc.
|
||||||
|
/[A-Z_]+\.md$/u,
|
||||||
|
],
|
||||||
}],
|
}],
|
||||||
'unicorn/new-for-builtins': 'error',
|
'unicorn/new-for-builtins': 'error',
|
||||||
'unicorn/no-array-for-each': 'error',
|
'unicorn/no-array-for-each': 'error',
|
||||||
|
3139
package-lock.json
generated
3139
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -143,7 +143,7 @@
|
|||||||
"yup": "^1.3.2"
|
"yup": "^1.3.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "2.3.4",
|
"@antfu/eslint-config": "2.11.4",
|
||||||
"@commitlint/cli": "^17.7.2",
|
"@commitlint/cli": "^17.7.2",
|
||||||
"@commitlint/config-conventional": "^17.7.0",
|
"@commitlint/config-conventional": "^17.7.0",
|
||||||
"@inrupt/solid-client-authn-core": "^2.0.0",
|
"@inrupt/solid-client-authn-core": "^2.0.0",
|
||||||
|
@ -300,7 +300,7 @@ export class RepresentationMetadata {
|
|||||||
predicate: Term | string | null,
|
predicate: Term | string | null,
|
||||||
object: Term | string | null,
|
object: Term | string | null,
|
||||||
graph: Term | string | null) => boolean;
|
graph: Term | string | null) => boolean;
|
||||||
}).has(this.id, predicate, object, graph) as boolean;
|
}).has(this.id, predicate, object, graph);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -55,7 +55,7 @@ function emitStoredErrors(this: Guarded, event: string, func: (error: Error) =>
|
|||||||
if (event === 'error' && func !== guardingErrorListener) {
|
if (event === 'error' && func !== guardingErrorListener) {
|
||||||
// Cancel an error timeout
|
// Cancel an error timeout
|
||||||
if (this[guardedTimeout]) {
|
if (this[guardedTimeout]) {
|
||||||
clearTimeout(this[guardedTimeout]!);
|
clearTimeout(this[guardedTimeout]);
|
||||||
this[guardedTimeout] = undefined;
|
this[guardedTimeout] = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ describe('A RedirectingHttpHandler', (): void => {
|
|||||||
|
|
||||||
beforeEach(async(): Promise<void> => {
|
beforeEach(async(): Promise<void> => {
|
||||||
targetExtractor = {
|
targetExtractor = {
|
||||||
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url!) })),
|
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url) })),
|
||||||
} as any;
|
} as any;
|
||||||
|
|
||||||
responseWriter = { handleSafe: jest.fn() } as any;
|
responseWriter = { handleSafe: jest.fn() } as any;
|
||||||
|
@ -14,7 +14,7 @@ describe('A RouterHandler', (): void => {
|
|||||||
request = { method: 'GET', url: '/test' } as any;
|
request = { method: 'GET', url: '/test' } as any;
|
||||||
|
|
||||||
targetExtractor = {
|
targetExtractor = {
|
||||||
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url!) })),
|
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url) })),
|
||||||
} as any;
|
} as any;
|
||||||
|
|
||||||
handler = {
|
handler = {
|
||||||
|
@ -210,7 +210,7 @@ describe('PathUtil', (): void => {
|
|||||||
|
|
||||||
beforeEach((): void => {
|
beforeEach((): void => {
|
||||||
targetExtractor = {
|
targetExtractor = {
|
||||||
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url!) })),
|
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url) })),
|
||||||
} as any;
|
} as any;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user