Skip to content

vue-cli-service lint crashes on non-fixable error #3224

@m3nowak

Description

@m3nowak

Version

3.2.2

Reproduction link

https://github.com/menmikimen/vue-cli-lint-crash

Environment info

  System:
    OS: Linux 4.19 Fedora 28 (Twenty Eight) 28 (Twenty Eight)
    CPU: (4) x64 Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
  Binaries:
    Node: 8.12.0 - /usr/bin/node
    Yarn: Not Found
    npm: 6.4.1 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 64.0
  npmPackages:
    @vue/babel-preset-app:  3.2.2
    @vue/cli-overlay:  3.2.0
    @vue/cli-plugin-babel: ^3.2.0 => 3.2.2
    @vue/cli-plugin-eslint: ^3.2.0 => 3.2.2
    @vue/cli-service: ^3.2.0 => 3.2.2
    @vue/cli-shared-utils:  3.2.2
    @vue/component-compiler-utils:  2.3.1
    @vue/preload-webpack-plugin:  1.1.0
    @vue/web-component-wrapper:  1.2.0
    babel-helper-vue-jsx-merge-props:  2.0.3
    babel-plugin-transform-vue-jsx:  4.0.1
    eslint-plugin-vue: ^5.0.0 => 5.0.0
    vue: ^2.5.21 => 2.5.21
    vue-eslint-parser:  2.0.3
    vue-hot-reload-api:  2.3.1
    vue-loader:  15.4.2
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.5.21 => 2.5.21
    vue-template-es2015-compiler:  1.6.0
  npmGlobalPackages:
    @vue/cli: 3.2.2

Steps to reproduce

  1. Clone linked repo
  2. Navigate to lint-crash folder within
  3. $ npm install
  4. $ npm run lint

What is expected?

Fix first error and display information about second.

What is actually happening?

First error is fixed and information about second is displayed.
However the script crashes after that.


Linked repository contains fresh project created with default template (using vue create).
I've added two linter errors in src/main.js file;

  • double semicolon (autofixable)
  • invocation of non-existing function (non-autofixable)

Crash occurs whenever lint command is run and there are non-fixable errors present.

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