Skip to content

Parsing error on Vue template filter with colon (luxon:locale) #687

@IlyaSemenov

Description

@IlyaSemenov

eslint-plugin-vue wouldn't parse vue template filters with a colon in it, e.g. luxon:locale (which is supposedly legitimate syntax: https://github.com/casbloem/vue-luxon#luxonlocale).

screenshot 2018-11-29 at 14 33 28

Tell us about your environment

  • ESLint version: 4.19.1
  • eslint-plugin-vue version: 4.5.0
  • Node version: 10.12.0

Please show your full configuration:

module.exports = {
  root: true,
  extends: [
    'plugin:vue/essential',
    '@vue/standard'
  ]
}

What did you do?

<template>
  <div>{{ user.create_time | luxon:locale('short') }}</div>
</template>

What did you expect to happen?

No errors.

What actually happened?

/Users/semenov/xxx/test.vue
  2:35  error  Parsing error: Unexpected token :  vue/no-parsing-error

✖ 1 problem (1 error, 0 warnings)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy