Skip to content

Commit 4aefa45

Browse files
committed
More lint changes
1 parent 6fa45bb commit 4aefa45

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

eslint.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import html from "eslint-plugin-html";
2+
13
export default [
24
{
3-
files: ["**/*.html", "**/*.js"],
5+
files: ["**/*.html"],
6+
plugins: { html },
47
languageOptions: {
58
ecmaVersion: 2022,
69
sourceType: "script",
@@ -39,10 +42,9 @@ export default [
3942
},
4043
},
4144
rules: {
42-
// Functions called from HTML onclick/onchange attributes appear unused to ESLint
4345
"no-unused-vars": ["warn", {
4446
varsIgnorePattern: "^(toggleConnection|disconnect|toggleSection|saveCurrentProfile|exportProfile|importProfile|loadSaved|delSaved|openProfile|closeProfile|openAbout|closeAbout|sendQuery|setFC|togglePolling|clearLog|addProfileEntry|copyFirstToAll|reRender|clearActiveProfile|updateOffsetUI|updateWirePreview)$"
4547
}],
4648
},
4749
},
48-
];
50+
];

0 commit comments

Comments
 (0)