Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying files to lint during vue-cli-service serve #4556

Closed
ChristophWalter opened this issue Sep 9, 2019 · 2 comments
Closed

Allow specifying files to lint during vue-cli-service serve #4556

ChristophWalter opened this issue Sep 9, 2019 · 2 comments

Comments

@ChristophWalter
Copy link

What problem does this feature solve?

vue-cli-service lint accepts target files or folders to lint, but vue-cli-service serve will only lint the default ones (src and tests) during development

What does the proposed API look like?

vue-cli-service serve --lint src tests mocks

or in vue.config.js

lintOnSave: "warning"
lintFiles: "src tests mocks"
@LinusBorg
Copy link
Member

LinusBorg commented Sep 9, 2019

vue-cli-service serve uses eslint-loader to lint files hat your app actually consumes. That means it can only lint files that are handled by webpack when serving your app.

So there's no way - within justifiable effort limits - to make this work as you want it to.

@ChristophWalter
Copy link
Author

Okay, thank you anyway. Now I know that I need to start eslint myself for those files. 👍

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

No branches or pull requests

2 participants