Skip to content

Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag #188

@aladdin-add

Description

@aladdin-add

Tell us about your environment

  • ESLint Version: v4.7.1
  • eslint-plugin-vue Version: 3.10.0
  • Node Version: v8.4.0

Please show your full configuration:
@yonyou-cloud/eslint-config

module.exports = {
  extends: ['./base.js', 'plugin:vue/recommended']
}




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

<style>
</style>

<template>
<div>
    <group>
        <cell title="title" value="value"></cell>
    </group>
</div>
</template>

<script>
import {Group, Cell} from 'vux'

export default {
    components: {
        Group,
        Cell
    }
}
</script>




What did you expect to happen?
no error.
What actually happened? Please include the actual, raw output from ESLint.
error Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag

a simple repro can run npm run lint in vux-demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions