Giter VIP home page Giter VIP logo

Comments (10)

dbaeumer avatar dbaeumer commented on July 17, 2024

I tried to reproduce this using eslint 2.4.0 and wasn't able to do so. @4kochi do you see the same error when you execute eslint in a terminal ?

from vscode-eslint.

4kochi avatar 4kochi commented on July 17, 2024

There is no problem with eslint in the terminal. But the error is also gone away in VS Code. I am using the following version:

VS Code: Version 0.10.15-insider (0.10.15-insider)
eslint: v2.7.0
vscode-eslint: v0.10.14

from vscode-eslint.

dbaeumer avatar dbaeumer commented on July 17, 2024

@4kochi any objection to close?

from vscode-eslint.

4kochi avatar 4kochi commented on July 17, 2024

No. Sorry. Done 😄

from vscode-eslint.

guyellis avatar guyellis commented on July 17, 2024

I'm seeing this same error in VSCode 1.0.0

I do have no-alert defined in the .eslintrc file:

    "no-alert": [2],

I do not see the error when run on the command line.

from vscode-eslint.

guyellis avatar guyellis commented on July 17, 2024

Actually, my error is slightly different: Configuration for rule "no-alert" is invalid: Value "off" is the wrong type.

You can see from the previous comment that "off" is not a value in the rc file.

from vscode-eslint.

jg123 avatar jg123 commented on July 17, 2024

It is looking for a number instead of text. Try 0 (the number zero) instead of "off". I had an eslint rule turned off at the top of the file that was giving me this error.

from vscode-eslint.

jaredwy avatar jaredwy commented on July 17, 2024

I am still seeing this error.

Configuration for rule "keyword-spacing" is invalid: Severity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed "error").

Eslint(v2.2.0) on the command line works fine. As does grunt-contrib-eslint

http://eslint.org/docs/user-guide/configuring#configuring-rules "error" is valid per the eslint docs (as is off)

"off" or 0 - turn the rule off
...

I am on Version 1.1.1 of vscode.
The eslint plugin is on version 0.10.16

from vscode-eslint.

dbaeumer avatar dbaeumer commented on July 17, 2024

@jaredwy: see #72 for the discussion around "off", "warn" and "error". I tested it with eslint 2.10.x and it worked for me. However there are issues with the editor.

from vscode-eslint.

jaredwy avatar jaredwy commented on July 17, 2024

Great. Will watch that :) rather annoying error in the editor.

from vscode-eslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.