Skip to content

Error while running ESLint: Unexpected Token, expected "," + Adjacent JSX elements must be wrapped in enclosing tag #479

@danchristian

Description

@danchristian

Tell us about your environment

  • ESLint Version: 4.19.1
  • eslint-plugin-vue Version: 4.5.0
  • Node Version: 8.11.1

Please show your full configuration:

module.exports = {
  root: true,
  env: {
    browser: true,
    node: true,
    es6: true
  },
  plugins: ["vue", "prettier"],
  extends: [
    "eslint:recommended",
    "plugin:vue/recommended",
    "plugin:prettier/recommended"
  ],
  rules: {
    "prettier/prettier": "error"
  },
  parserOptions: {
    sourceType: "module"
  }
};

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

<template lang="pug">
  ul
    li(v-for="withdrawal in bankingWithdrawals") {{ withdrawal.Amount }}
</template>
<script>
</script>

What did you expect to happen?

No errors

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

It won't allow periods in mustache syntax, it keeps on erroring. I can't find any related issues on this repo.

screen shot 2018-05-25 at 11 26 58

If I remove {{ withdrawal.Amount }} and reload, I get a new error, complaining about adjacent JSX elements. I am not using JSX and the other issues on this repo similar to this don't solve my problem.

screen shot 2018-05-25 at 11 30 02

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