Skip to content

ESLint validation not working if VUE component script is located in separate file #1359

Closed
@erik-sytnyk

Description

Version

15.2.4

Reproduction link

https://bitbucket.org/yegor_sytnyk/vue_cli_eslint_bug/src/master/

Steps to reproduce

Move script part of vue component into separate JS file (HelloWorld.vue.js)

Reference in main component (HelloWorld.vue: <script src="./HelloWorld.vue.js'></script>)

Add code which violete ESLint rules

(using vue-cli)

original issue here: vuejs/vue-cli#1602 (comment)

What is expected?

o see warning/error report in a console (via vue-cli)

What is actually happening?

Nothing is reported (code is not checked)


The original issue was opened for vue-cli

as it was referenced by @Akryum, it seems to be vue-loader issue

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