Skip to content

Commit

Permalink
Check for unused parameters/variables
Browse files Browse the repository at this point in the history
Except for those prefixed with an underscore (_).
  • Loading branch information
caleb531 committed Jun 5, 2024
1 parent 6d3e829 commit 51934a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/ban-types": "off",
"no-constant-condition": "off"
"no-constant-condition": "off",
"no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
]
}
}
2 changes: 1 addition & 1 deletion src/jcanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ function _addLayer(
canvas: HTMLCanvasElement,
params: JCanvasObject,
args?: Partial<JCanvasObject>,
method?: (args: JCanvasObject) => JQuery<HTMLElement>
method?: (_args: JCanvasObject) => JQuery<HTMLElement>
): JCanvasObject {
const layer: JCanvasObject = params._layer ? (args as JCanvasLayer) : params;

Expand Down

0 comments on commit 51934a3

Please sign in to comment.