1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-16 00:59:07 +02:00

Suppress warnings on TODO comments (#11779)

This commit is contained in:
LitoMore 2024-09-17 06:11:21 +08:00 committed by GitHub
parent 8e7eb8c949
commit 099de86f12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,7 @@ const TESTS = {
const license =
icon.license !== undefined && Object.hasOwn(icon.license, 'url')
? [
// eslint-disable-next-line no-warning-comments
// TODO: `hasOwn` is not currently supported by TS.
// See https://github.com/microsoft/TypeScript/issues/44253
/** @type {string} */

View File

@ -520,6 +520,7 @@ const config = {
const segments = getIconPathSegments(iconPath);
/** @type {import('svg-path-segments').Segment[]} */
// eslint-disable-next-line no-warning-comments
// TODO: svgpath does not includes the `segments` property on the interface,
// see https://github.com/fontello/svgpath/pull/67/files
// @ts-ignore
@ -870,6 +871,7 @@ const config = {
case 'Z':
case 'z': {
// eslint-disable-next-line no-warning-comments
// TODO: Overlapping in Z should be handled in another rule
currentAbsCoord = [startPoint[0], startPoint[1]];
_resetStartPoint = true;