Skip to content

Commit

Permalink
fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbandes committed Dec 16, 2024
1 parent 9e1f854 commit b67a912
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"eslint.options": {
"reportUnusedDisableDirectives": "error"
},
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
Expand Down
1 change: 1 addition & 0 deletions packages/omgidl-parser/src/processIDL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function buildMap(definitions: AnyASTNode[]): Map<string, AnyIDLNode> {
const enumValue = getValueAnnotation(m.annotations) ?? (++prevEnumValue as ConstantValue);
if (typeof enumValue !== "number") {
throw new Error(
// eslint-disable-next-line @typescript-eslint/no-base-to-string
`Enum value, ${enumValue?.toString() ?? "undefined"}, assigned to ${node.name}::${
m.name
} must be a number`,
Expand Down

0 comments on commit b67a912

Please sign in to comment.