Skip to content

Completion hooks aborted by linting errors. #937

Closed
@naeramarth7

Description

@naeramarth7

Version

3.0.0-beta.3

Steps to reproduce

Create a new project with vue create.

  • select at least TypeScript, PWA and Linting
  • select ESLint Airbnb config
  • select lint on save

What is expected?

Project should be created.

What is actually happening?

Project is created though completing hook will be aborted with the following error:

⠋  Running completion hooks...error: Unexpected use of file extension "ts" for "./registerServiceWorker.ts" (import/extensions) at vuedit/src/main.ts:5:8:
  3 | import router from './router';
  4 | import store from './store';
> 5 | import './registerServiceWorker.ts';
    |        ^
  6 |
  7 | Vue.config.productionTip = false;
  8 |```

<!-- generated by vue-issues. DO NOT REMOVE -->

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