Skip to content

Changing ESLint config through vue ui cause error #5175

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

Closed
oOBoomberOo opened this issue Feb 10, 2020 · 0 comments · Fixed by #5242
Closed

Changing ESLint config through vue ui cause error #5175

oOBoomberOo opened this issue Feb 10, 2020 · 0 comments · Fixed by #5242

Comments

@oOBoomberOo
Copy link

Version

4.2.2

Reproduction link

https://github.com/oOBoomberOo/vue_ui_config_error

Environment info

 System:
    OS: Linux 5.3 elementary OS 5.1 Hera
    CPU: (4) x64 Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz
  Binaries:
    Node: 13.7.0 - ~/.nvm/versions/node/v13.7.0/bin/node
    Yarn: Not Found
    npm: 6.13.6 - ~/.nvm/versions/node/v13.7.0/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 72.0.2
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0 
    @vue/babel-plugin-transform-vue-jsx:  1.1.2 
    @vue/babel-preset-app:  4.2.2 
    @vue/babel-preset-jsx:  1.1.2 
    @vue/babel-sugar-functional-vue:  1.1.2 
    @vue/babel-sugar-inject-h:  1.1.2 
    @vue/babel-sugar-v-model:  1.1.2 
    @vue/babel-sugar-v-on:  1.1.2 
    @vue/cli-overlay:  4.2.2 
    @vue/cli-plugin-babel: ~4.2.0 => 4.2.2 
    @vue/cli-plugin-eslint: ~4.2.0 => 4.2.2 
    @vue/cli-plugin-router:  4.2.2 
    @vue/cli-plugin-typescript: ~4.2.0 => 4.2.2 
    @vue/cli-plugin-vuex:  4.2.2 
    @vue/cli-service: ~4.2.0 => 4.2.2 
    @vue/cli-shared-utils:  4.2.2 
    @vue/component-compiler-utils:  3.1.1 
    @vue/eslint-config-airbnb: ^5.0.2 => 5.0.2 
    @vue/eslint-config-typescript: ^5.0.1 => 5.0.1 
    @vue/preload-webpack-plugin:  1.1.1 
    @vue/web-component-wrapper:  1.2.0 
    eslint-plugin-vue: ^6.1.2 => 6.1.2 
    typescript: ~3.7.5 => 3.7.5 
    vue: ^2.6.11 => 2.6.11 
    vue-class-component: ^7.2.2 => 7.2.2 
    vue-eslint-parser:  7.0.0 
    vue-hot-reload-api:  2.3.4 
    vue-loader:  15.8.3 
    vue-property-decorator: ^8.3.0 => 8.4.0 
    vue-style-loader:  4.1.2 
    vue-template-compiler: ^2.6.11 => 2.6.11 
    vue-template-es2015-compiler:  1.9.1 
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

  1. Open Vue UI
  2. Create new Vue project with ES Lint option
  3. Go to "Configuration" tab
  4. Go to "ESLint" section
  5. Select "Rules"
  6. Change any config value to "Warning"
  7. Serve/Build the project

What is expected?

Everything compiled normally and able to access the server via http://localhost:8080 url

What is actually happening?

Unable to compiled vue project with this error message:

Module build failed (from ./node_modules/eslint-loader/index.js):
Error: .eslintrc.js:
        Configuration for rule "vue/no-async-in-computed-properties" is invalid:
        Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '"warning"').
haoqunjiang added a commit to haoqunjiang/vue-cli that referenced this issue Mar 4, 2020
haoqunjiang added a commit that referenced this issue Mar 19, 2020
* fix: fix severity config in ui

closes #5175

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

Successfully merging a pull request may close this issue.

2 participants