Skip to content

Seems not compatible with eslint-plugin-vue #46

@towertop

Description

@towertop

When I turn on eslint-plugin-diff with eslint-plugin-vue at the same time, a simple .vue file content keey reporting rule 'vue/comment-directive ' error.

From their document https://eslint.vuejs.org/rules/comment-directive.html, the problematic rule uses eslint processer API rather than other regular rules.

图片

<template>
  <div class="a-new-table"></div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'ANewTable',
  setup() {
    return {}
  },
})
</script>
<style lang="less" scoped>
.a-new-table {
  background: black;
}
</style>

No expert on eslint and git, spend a whole hour to figure out this. Hope anyone could look into it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions