1
0

feat: update eslint config

support async component, see: https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
This commit is contained in:
Dominik Pschenitschni
2022-10-04 12:48:23 +02:00
parent f360ebfe98
commit 4655e1ce34
22 changed files with 57 additions and 47 deletions

View File

@ -1,6 +1,8 @@
export default {
import type {Directive} from 'vue'
const focus = <Directive<HTMLElement,string>>{
// When the bound element is inserted into the DOM...
mounted: (el, {modifiers}) => {
mounted(el, {modifiers}) {
// Focus the element only if the viewport is big enough
// auto focusing elements on mobile can be annoying since in these cases the
// keyboard always pops up and takes half of the available space on the screen.
@ -10,3 +12,5 @@ export default {
}
},
}
export default focus