Skip to content

vue/require-default-prop doesn't recognized quoted property name. #416

Closed
@nchutchind

Description

@nchutchind

Tell us about your environment

  • ESLint Version: 4.18.1
  • eslint-plugin-vue Version: 4.3.0
  • Node Version: 8.9.4

Please show your full configuration:

"plugin:vue/recommended"



What did you do? Please include the actual source code causing the issue.

props: {
        isWorking: {
            type     : Boolean,
            required : false,
            'default': true,
        }
    },


What did you expect to happen?
No error.

What actually happened? Please include the actual, raw output from ESLint.
When not quoted, I get an eslint error: Unquoted reserved word 'default' used as key. (quote-props).
When quoted, I get Prop 'isWorking' requires default value to be set. (vue/require-default-prop).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions