We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fa45bb commit 4aefa45Copy full SHA for 4aefa45
1 file changed
eslint.config.js
@@ -1,6 +1,9 @@
1
+import html from "eslint-plugin-html";
2
+
3
export default [
4
{
- files: ["**/*.html", "**/*.js"],
5
+ files: ["**/*.html"],
6
+ plugins: { html },
7
languageOptions: {
8
ecmaVersion: 2022,
9
sourceType: "script",
@@ -39,10 +42,9 @@ export default [
39
42
},
40
43
41
44
rules: {
- // Functions called from HTML onclick/onchange attributes appear unused to ESLint
45
"no-unused-vars": ["warn", {
46
varsIgnorePattern: "^(toggleConnection|disconnect|toggleSection|saveCurrentProfile|exportProfile|importProfile|loadSaved|delSaved|openProfile|closeProfile|openAbout|closeAbout|sendQuery|setFC|togglePolling|clearLog|addProfileEntry|copyFirstToAll|reRender|clearActiveProfile|updateOffsetUI|updateWirePreview)$"
47
}],
48
49
-];
50
+];
0 commit comments