Skip to content

Question: Parsing error: Unexpected token : #198

@idefixcert

Description

@idefixcert

I have the following code:

const content: Ref<HTMLDivElement | undefined> = ref(undefined);

with eslint I see the following error:

  49:13  error  Parsing error: Unexpected token :

as a config I use:

/* eslint-env node */
module.exports = {
  root: true,
  parser: "vue-eslint-parser",
  extends: [
    "eslint:recommended",
    "plugin:vue/vue3-essential",
  ],
  parserOptions: {
    ecmaVersion: "latest",
  },
  rules: {
    //'vue/multi-word-component-names': 'off',
    "vue/multi-word-component-names": [
      "error",
      {
        ignores: ["About", "Home"],
      },
    ],
  },
};

my question is, if that is an error on my end or if it is an parsing error.

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