mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Enable no-unnecessary-type-arguments rule
This commit is contained in:
parent
28af181eee
commit
5c1553bdda
@ -12,6 +12,7 @@ const typeAwareRules = {
|
|||||||
'ts/no-implied-eval': 'error',
|
'ts/no-implied-eval': 'error',
|
||||||
'ts/no-misused-promises': 'error',
|
'ts/no-misused-promises': 'error',
|
||||||
'ts/no-throw-literal': 'error',
|
'ts/no-throw-literal': 'error',
|
||||||
|
'ts/no-unnecessary-type-arguments': 'error',
|
||||||
'ts/no-unnecessary-type-assertion': 'error',
|
'ts/no-unnecessary-type-assertion': 'error',
|
||||||
'ts/no-unsafe-argument': 'error',
|
'ts/no-unsafe-argument': 'error',
|
||||||
'ts/no-unsafe-assignment': 'error',
|
'ts/no-unsafe-assignment': 'error',
|
||||||
|
@ -140,9 +140,9 @@ export class N3Patcher extends RepresentationPatcher<RdfDatasetRepresentation> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Apply bindings to deletes/inserts
|
// Apply bindings to deletes/inserts
|
||||||
deletes = deletes.map((quad): Quad => mapTerms<Quad>(quad, (term): Term =>
|
deletes = deletes.map((quad): Quad => mapTerms(quad, (term): Term =>
|
||||||
term.termType === 'Variable' ? bindings[0].get(term)! : term));
|
term.termType === 'Variable' ? bindings[0].get(term)! : term));
|
||||||
inserts = inserts.map((quad): Quad => mapTerms<Quad>(quad, (term): Term =>
|
inserts = inserts.map((quad): Quad => mapTerms(quad, (term): Term =>
|
||||||
term.termType === 'Variable' ? bindings[0].get(term)! : term));
|
term.termType === 'Variable' ? bindings[0].get(term)! : term));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user