We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checklist
Tell us about your environment
Please show your full configuration:
/* eslint-env node */ require('@rushstack/eslint-patch/modern-module-resolution') const {defineConfig} = require('eslint-define-config') module.exports = defineConfig({ root: true, extends: [ 'eslint:recommended', 'plugin:vue/vue3-recommended', '@vue/eslint-config-typescript/recommended', '@vue/eslint-config-prettier', ], parserOptions: { ecmaVersion: 11, }, rules: { 'prettier/prettier': [ 'warn', { endOfLine: 'auto', }, ], 'no-alert': 'warn', 'no-console': 'warn', 'no-debugger': 'warn', 'arrow-body-style': 'warn', 'arrow-parens': 'warn', 'eqeqeq': 'error', 'generator-star-spacing': 'warn', 'grouped-accessor-pairs': 'warn', 'no-caller': 'error', 'no-duplicate-imports': 'error', 'no-else-return': 'warn', 'no-eval': 'error', 'no-extra-bind': 'warn', 'no-implied-eval': 'error', 'no-labels': 'warn', 'no-lone-blocks': 'warn', 'no-new-func': 'error', 'no-new-wrappers': 'error', 'no-return-await': 'warn', 'no-template-curly-in-string': 'warn', 'no-throw-literal': 'error', 'no-undef-init': 'warn', 'no-useless-call': 'warn', 'no-useless-constructor': 'warn', 'no-useless-rename': 'warn', 'no-useless-return': 'warn', 'no-var': 'error', 'object-shorthand': 'warn', 'prefer-const': 'warn', 'prefer-destructuring': 'warn', 'prefer-numeric-literals': 'warn', 'prefer-rest-params': 'warn', 'prefer-spread': 'warn', 'prefer-template': 'warn', 'require-atomic-updates': 'warn', 'rest-spread-spacing': 'warn', 'sort-imports': [ 'warn', { ignoreCase: true, ignoreDeclarationSort: true, }, ], 'template-curly-spacing': 'warn', 'yield-star-spacing': 'warn', 'yoda': 'warn', 'vue/html-self-closing': [ 'error', { html: { void: 'always', normal: 'always', component: 'always', }, svg: 'always', math: 'always', }, ], 'vue/eqeqeq': 'error', }, })
What did you do?
export interface BFormProps { id?: string floating?: Booleanish novalidate?: Booleanish validated?: Booleanish } // interface Props extends BFormProps { role?: string } const props = withDefaults(defineProps<Props>(), { id: undefined, })
What did you expect to happen? To give out a warning as id, floating, novalidate, validated do not have default values
What actually happened?
No warn
Repository to reproduce this issue
A full repository is a bit overkill, as you can just reproduce the issue with:
const props = withDefaults(defineProps<{id?: string} & {role?: string}>(), { role: undefined, })
The text was updated successfully, but these errors were encountered:
Or following the Vue 3.3 announcement:
<script setup lang="ts"> import type { Props } from './foo' // imported + intersection type defineProps<Props & { extraProp?: string }>() </script>
https://blog.vuejs.org/posts/vue-3-3#imported-and-complex-types-support-in-macros
Sorry, something went wrong.
I'm not 100% sure if #2134 covers this issue.
Duplicate of #2127
No branches or pull requests
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
export interface BFormProps { id?: string floating?: Booleanish novalidate?: Booleanish validated?: Booleanish } // interface Props extends BFormProps { role?: string } const props = withDefaults(defineProps<Props>(), { id: undefined, })
What did you expect to happen?
To give out a warning as id, floating, novalidate, validated do not have default values
What actually happened?
No warn
Repository to reproduce this issue
A full repository is a bit overkill, as you can just reproduce the issue with:
The text was updated successfully, but these errors were encountered: