Skip to content

Commit

Permalink
Suppress warnings on TODO comments (#11779)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore committed Sep 16, 2024
1 parent 8e7eb8c commit 099de86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/lint/ourlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} */
Expand Down
2 changes: 2 additions & 0 deletions svglint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 099de86

Please sign in to comment.