diff --git a/eslint.config.mjs b/eslint.config.mjs index 1c496830f5957..f76d22d8dc01e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -27,7 +27,7 @@ export default [ ), js.configs.recommended, eslintConfigPrettier, - ...eslintPluginVue.configs['flat/recommended'], + ...eslintPluginVue.configs['flat/vue2-recommended'], ...vuejsAccessibility.configs["flat/recommended"], ...intlifyVueI18N.configs['flat/recommended'], { @@ -78,6 +78,12 @@ export default [ 'vue/multi-word-component-names': 'off', 'vuejs-accessibility/no-onchange': 'off', + // rule for Vue 3.x , FT is on 2.x + 'vue/no-v-for-template-key-on-child': 'off', + 'vue/no-v-for-template-key': 'error', + // To be fixed on Vue 3 migration + 'vue/no-deprecated-v-on-native-modifier': 'warn', + 'vuejs-accessibility/label-has-for': ['error', { required: { some: ['nesting', 'id'], diff --git a/src/main/index.js b/src/main/index.js index 331df9f414166..10ca46343829e 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -455,7 +455,7 @@ function runApp() { requestHeaders.Authorization = invidiousAuthorization.authorization } } - // eslint-disable-next-line n/no-callback-literal + callback({ requestHeaders }) }) @@ -466,7 +466,7 @@ function runApp() { if (responseHeaders) { delete responseHeaders['set-cookie'] } - // eslint-disable-next-line n/no-callback-literal + callback({ responseHeaders }) }) @@ -757,7 +757,7 @@ function runApp() { // If called multiple times // Duplicate menu items will be added if (replaceMainWindow) { - // eslint-disable-next-line + setMenu() }