Skip to content

request: warn when // @vue/component is not followed by an object #516

Open
@KaelWD

Description

@KaelWD
  • ESLint Version: 4.19.1
  • eslint-plugin-vue Version: 4.5.0
  • Node Version: 9.11.1

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

/* @vue/component */
export default mixins(
  Colorable,
  Toggleable,
  PositionableFactory(['left', 'bottom']),
  Transitionable
).extend({
  props: ['a-prop'],

  name: 'a-component'

What did you expect to happen?
eslint should warn about /* @vue/component */ not being followed by a component object, because it needs to be directly above the .extend({ line to work.

What actually happened? Please include the actual, raw output from ESLint.
Nothing, it passes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions