feat: arm 'vue/no-setup-props-reactivity-loss' rule
This commit is contained in:
parent
b09d0ab711
commit
522f1cb596
|
|
@ -48,7 +48,7 @@ export default [
|
|||
|
||||
// vue3
|
||||
'vue/no-ref-object-reactivity-loss': 'error',
|
||||
'vue/no-setup-props-reactivity-loss': 'warn', // TODO: switch to error after vite `propsDestructure` is removed
|
||||
'vue/no-setup-props-reactivity-loss': 'error',
|
||||
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ const emit = defineEmits<{
|
|||
const {t} = useI18n()
|
||||
const passwordFieldType = ref('password')
|
||||
const password = ref('')
|
||||
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
||||
const isValid = ref<true | string>(props.validateInitially === true ? true : '')
|
||||
const validateAfterFirst = ref(false)
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ defineSlots<{
|
|||
}): void
|
||||
}>()
|
||||
|
||||
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
||||
const openValue = ref(props.open)
|
||||
watchEffect(() => {
|
||||
openValue.value = props.open
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ const attrs = useAttrs()
|
|||
|
||||
const root = ref<HTMLInputElement | null>(null)
|
||||
const fp = ref<flatpickr.Instance | null>(null)
|
||||
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
||||
const safeConfig = ref<Options>({...props.config})
|
||||
|
||||
function prepareConfig() {
|
||||
|
|
|
|||
|
|
@ -100,11 +100,7 @@ export default defineConfig(({mode}) => {
|
|||
},
|
||||
},
|
||||
plugins: [
|
||||
vue({
|
||||
script: {
|
||||
propsDestructure: true,
|
||||
},
|
||||
}),
|
||||
vue(),
|
||||
svgLoader({
|
||||
// Since the svgs are already manually optimized via https://jakearchibald.github.io/svgomg/
|
||||
// we don't need to optimize them again.
|
||||
|
|
|
|||
Loading…
Reference in New Issue