chore: Update @antfu/eslint-config dependency to 2.11.4

This commit is contained in:
Joachim Van Herwegen 2024-03-29 10:18:21 +01:00
parent fa060b86f3
commit 7abca33b67
18 changed files with 2353 additions and 856 deletions

View File

@ -42,4 +42,10 @@ module.exports = antfu.default(
'unicorn/filename-case': 'off',
},
},
{
files: [ '**/*.md' ],
rules: {
'no-irregular-whitespace': 'off',
},
},
);

View File

@ -16,6 +16,10 @@ module.exports = {
kebabCase: true,
snakeCase: false,
},
ignore: [
// CODE_OF_CONDUCT.md, etc.
/[A-Z_]+\.md$/u,
],
}],
'unicorn/new-for-builtins': 'error',
'unicorn/no-array-for-each': 'error',

3139
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -143,7 +143,7 @@
"yup": "^1.3.2"
},
"devDependencies": {
"@antfu/eslint-config": "2.3.4",
"@antfu/eslint-config": "2.11.4",
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"@inrupt/solid-client-authn-core": "^2.0.0",

View File

@ -300,7 +300,7 @@ export class RepresentationMetadata {
predicate: Term | string | null,
object: Term | string | null,
graph: Term | string | null) => boolean;
}).has(this.id, predicate, object, graph) as boolean;
}).has(this.id, predicate, object, graph);
}
/**

View File

@ -55,7 +55,7 @@ function emitStoredErrors(this: Guarded, event: string, func: (error: Error) =>
if (event === 'error' && func !== guardingErrorListener) {
// Cancel an error timeout
if (this[guardedTimeout]) {
clearTimeout(this[guardedTimeout]!);
clearTimeout(this[guardedTimeout]);
this[guardedTimeout] = undefined;
}

View File

@ -17,7 +17,7 @@ describe('A RedirectingHttpHandler', (): void => {
beforeEach(async(): Promise<void> => {
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;
responseWriter = { handleSafe: jest.fn() } as any;

View File

@ -14,7 +14,7 @@ describe('A RouterHandler', (): void => {
request = { method: 'GET', url: '/test' } as any;
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;
handler = {

View File

@ -210,7 +210,7 @@ describe('PathUtil', (): void => {
beforeEach((): void => {
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;
});