Skip to content

Commit

Permalink
! Fix config for vue 2
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Oct 5, 2024
1 parent a2a7ab3 commit efe709c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
{
Expand Down Expand Up @@ -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'],
Expand Down
6 changes: 3 additions & 3 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ function runApp() {
requestHeaders.Authorization = invidiousAuthorization.authorization
}
}
// eslint-disable-next-line n/no-callback-literal
callback({ requestHeaders })
})

Expand All @@ -466,7 +466,7 @@ function runApp() {
if (responseHeaders) {
delete responseHeaders['set-cookie']
}
// eslint-disable-next-line n/no-callback-literal
callback({ responseHeaders })
})

Expand Down Expand Up @@ -757,7 +757,7 @@ function runApp() {
// If called multiple times
// Duplicate menu items will be added
if (replaceMainWindow) {
// eslint-disable-next-line
setMenu()
}

Expand Down

0 comments on commit efe709c

Please sign in to comment.