Skip to content

ESLint ui rules presets work incorrectly: "Error (Default)" produces warnings; "Warning" does not work at all. #3066

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

Open
TitanFighter opened this issue Dec 2, 2018 · 0 comments

Comments

@TitanFighter
Copy link

Version

3.2.1

Reproduction link

http://no.link

Environment info

  System:
    OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
    CPU: (4) x64 Intel(R) Core(TM) i5 CPU       M 430  @ 2.27GHz
  Binaries:
    Node: 10.14.0 - /usr/bin/node
    Yarn: Not Found
    npm: 6.4.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 70.0.3538.110
    Firefox: 63.0.3
  npmPackages:
    @vue/babel-preset-app:  3.2.0 
    @vue/cli-overlay:  3.2.0 
    @vue/cli-plugin-babel: ^3.2.0 => 3.2.0 
    @vue/cli-plugin-eslint: ^3.2.0 => 3.2.1 
    @vue/cli-service: ^3.2.0 => 3.2.0 
    @vue/cli-shared-utils:  3.2.0 
    @vue/component-compiler-utils:  2.3.0 
    @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-0 => 5.0.0-beta.5 
    vue: ^2.5.17 => 2.5.17 
    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.17 => 2.5.17 
    vue-template-es2015-compiler:  1.6.0 
  npmGlobalPackages:
    @vue/cli: 3.2.1

Steps to reproduce

  1. vue create test or create project in vue ui;
  2. Select default template;
  3. Open vue ui and in Configuration -> ESLint configuration -> select config Strongly recommended or Recommended;
  4. npm run serve -> no any warnings (however, warnings must be shown. Regarding this issue the ticket No eslint warnings on initial "npm run serve"  #3065 already opened);
  5. Open App.vue, simply re-save it (or make small changes) -> in terminal problems are shown as "Warning", however in Configuration -> ESLint configuration -> Rules tab all rules are set as Error (Default) <--- THIS IS THE FIRST ISSUE;
  6. Open vue ui and in Configuration -> ESLint configuration -> Rules tab change Error (Default) to Warning for the rule vue/max-attributes-per-line or vue/component-name-in-template-casing (those two produced warnings at the step 5);
  7. Stop launched npm run serve at the step 4 (without this, changes in ESLint Rules are not applied);
  8. npm run serve -> no any warnings/errors;
  9. Open App.vue, simply re-save it (or make small changes) -> in terminal some problems are shown as "Warning" and those problems, for which we changed presets from Error (Default) to Warning at the step 6 are not shown at all <--- THIS IS THE SECOND ISSUE.

What is expected?

Error (Default) preset should show problems as errors in terminal.
Warning preset should show problems as warnings in terminal.

What is actually happening?

Error (Default) preset shows problems as "Warning" in terminal.
Warning preset shows nothing (work as "Off").

@TitanFighter TitanFighter changed the title ESLing ui rules presets work incorrectly: "Error (Default)" produces warnings; "Warning" does not work at all. ESLint ui rules presets work incorrectly: "Error (Default)" produces warnings; "Warning" does not work at all. Dec 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants