diff --git a/eslint.config.js b/eslint.config.js index 3885aac4..649597ed 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -7,6 +7,9 @@ const commonGlobals = { ...globals.browser, ...globals.node, ...globals.es2024, + CanvasImageSource: "readonly", + EventListener: "readonly", + PositionCallback: "readonly", grecaptcha: "readonly", }; @@ -101,12 +104,12 @@ export default [ rules: { "no-console": "off", "no-debugger": "warn", - "no-empty": "warn", + "no-empty": ["warn", { allowEmptyCatch: true }], "no-undef": "warn", "no-unused-vars": ["warn", commonUnusedOptions], "no-useless-assignment": "warn", "vue/multi-word-component-names": "off", - "vue/no-mutating-props": "warn", + "vue/no-mutating-props": ["warn", { shallowOnly: true }], "vue/no-unused-components": "warn", "vue/no-unused-vars": "warn", "vue/no-v-html": "off", @@ -133,7 +136,7 @@ export default [ }, }, rules: { - "no-empty": "warn", + "no-empty": ["warn", { allowEmptyCatch: true }], }, }, ]; diff --git a/index.html b/index.html index ab236d60..adab9482 100644 --- a/index.html +++ b/index.html @@ -436,7 +436,7 @@