Skip to content

Crash for toLocaleString() in "vue/no-unused-properties" rule #1416

Closed
@ota-meshi

Description

@ota-meshi

Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have read the FAQ and my problem is not listed.

Tell us about your environment

  • ESLint version: 7.18.0
  • eslint-plugin-vue version: 7.4.1
  • Node version: v14.15.1
  • Operating System: macOS Catarina

Please show your full configuration:

{
  rules: {
            "vue/no-unused-properties": [
                "warn",
                { groups: ["props", "data", "computed"], deepData: true },
            ]
  }
}

What did you do?

<template>
  <div> {{ obj.num.toLocaleString() }} </div>
</template>

<script>
export default {
  data () {
    return {
      obj: { num: { foo: 123 } }
    }
  }
</script>

What did you expect to happen?

No report warnings.

What actually happened?

Crash in "vue/no-unused-properties" rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions