Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

ESLint Standard - PropType not found in ‘vue‘ (and other types) #160

Closed
intelliBrain opened this issue Aug 10, 2021 · 2 comments
Closed
Labels

Comments

@intelliBrain
Copy link

intelliBrain commented Aug 10, 2021

Describe the bug
just created a brand new quasar v2 project (SCSS, TypeScript, ESLint Standard, Axios, Composition API) enabled. however, quasar CLI always shows some strange eslint errors (see screenshot).

the issue only occurs when ESLint Standard is selected on "quasar create". no problems with ESLint Prettier...

additional info & screenshots provided in discord:
https://discord.com/channels/415874313728688138/807654245640962059/874670423890096168
https://discord.com/channels/415874313728688138/807654245640962059/874674923153555498

To Reproduce
Steps to reproduce the behavior:

  1. run „quasar create testproj“ with options: SCSS, TypeScript, ESLint Standard, Axios, Composition API
  2. Quasar CLI does its magic…
  3. …final eslint step fails with errors (see screenshots in discord, links above) when ESLint Standard is selected (however, no issue if ESLint Prettier was selected)

Expected behavior
Quasar CLI completes without errors

Screenshots
Screenshot

Platform (please complete the following information):
OS: Windows 10
Node: 14.17.4
NPM: 7.19.1
Yarn: 1.22.5
Browsers: -
iOS: -
Android: -
Electron: -

Additional context
Add any other context about the problem here.

@IlCallo
Copy link
Member

IlCallo commented Aug 11, 2021

This is done because we define custom rules on Standard ESLint preset instead of relying on the preset configs
You can either:

We'll probably remove the import/named rule definition for TS generated projects, thanks for reporting

@intelliBrain
Copy link
Author

disable the rule worked for me. thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants