-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Linting results are different between ‘vue-cli-service serve’ and ‘vue-cli-service lint’ #4425
Comments
I am having the same issue |
+1 |
I believe it's a cache issue as if I remove node_module/.cache folder, I get similar results on the first run. |
up |
This issues still exists on 4.0.0-rc7 removing the cache folder as mentioned above has no effect, typescript errors (or rather warnings defined as errors) are only showed on serve not lint. |
I have the following rules defined {
"rules": {
"quotes": ["error", "double", { "avoidEscape": true }],
"comma-dangle": ["error", "never"]
}
} with |
Same issue reproducing for me
|
I'm having the same issue. I have to disable "lintOnSave" in the vue config to get it to stop spamming my terminal with warnings. |
Same. I initialized a new repository with version I'd ignore it except sometimes I make legit errors and need to see them in the console. |
+1 |
In my case setting lintOnSave: true in vue.config.js file fixes the issue.
|
I'm getting a build error on the linter: I would like to get all errors which i might get in |
I'm seeing the same issue. Of particular note is getting an I'd be happy to take a run at the issue but I'm honestly not sure where to look. I tried following the CLI code to the config it's using when it runs and got quite lost. |
Has there been any progress on this? I'm on 4.1.2 and this problem still exists. |
To accentuate the importance of this issue, I'm unable to run build, always resulting in Build failed with errors. Whether lintOnSave is set to true or false has no effect. EDIT: We have two projects with identical / near-identical Vue setup and dependencies. Somehow this problem is not appearing on the other project (but it has slimmer codebase). |
Found out these are not ESLint errors, but type checking errors. The weird part is that I've developed using a NPM script for the command However type checking errors given by |
|
In case anyone's interested in contributing, the root cause is explained here: #3065 (comment) |
May 8th, still here =) |
Same problem in mid 2020, with @vue/cli 4.4.1 |
same issue for me |
Anything figured out ? same issue on 11 July. |
Side but strongly related issue: |
It should be lintOnServe, right @jasonkarns?! |
* Cf [Linting results are different between ‘vue-cli-service serve’ and ‘vue-cli-service lint’](vuejs/vue-cli#4425)
+1 |
Version
3.9.3
Reproduction link
https://github.com/junyo/test-tslint
Environment info
Steps to reproduce
Warnings output
npm run serve
No Warnings and Errors output
npm run lint
What is expected?
results output from 'vue-cli-service serve' command should be same as 'vue-cli-service lint' command
What is actually happening?
no errors and warnings from 'vue-cli-service lint' command
The text was updated successfully, but these errors were encountered: