Skip to content

Commit

Permalink
blindly suppress mysterious lint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jan 4, 2025
1 parent 73a93c5 commit d9ec3dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/marshal/src/encodeToCapData.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ export const makeEncodeToCapData = (encodeOptions = {}) => {
// work. If we allow sortable symbol keys, this will need to
// become more interesting.
const names = ownKeys(passable).sort();
// TODO either delete or at-ts-expect-error
// @ts-ignore
return fromEntries(
names.map(name => [name, encodeToCapDataRecur(passable[name])]),
);
Expand Down
2 changes: 2 additions & 0 deletions packages/marshal/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export {};

/**
* @template T
* TODO either delete or at-ts-expect-error
* // @ts-ignore
* @typedef {{ '@qclass': T }} EncodingClass
*/

Expand Down
3 changes: 2 additions & 1 deletion packages/pass-style/src/symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const wellKnownSymbolNames = new Map(
name => typeof name === 'string' && typeof Symbol[name] === 'symbol',
)
.filter(name => {
// @ts-expect-error It doesn't know name cannot be a symbol
// TODO either delete or at-ts-expect-error
// @ts-ignore It doesn't know name cannot be a symbol
!name.startsWith('@@') ||
Fail`Did not expect Symbol to have a symbol-valued property name starting with "@@" ${q(
name,
Expand Down

0 comments on commit d9ec3dd

Please sign in to comment.