Comments (10)
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.
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.
@4kochi any objection to close?
from vscode-eslint.
No. Sorry. Done 😄
from vscode-eslint.
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.
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.
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.
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.
@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.
Great. Will watch that :) rather annoying error in the editor.
from vscode-eslint.
Related Issues (20)
- vscode-eslint extension not working on latest version of VSCode, v1.90.0 HOT 18
- Is it possible to pass parameters to the format? HOT 1
- Files are not analized when opened HOT 2
- When the user provides eslint.options, remove the requirement for a eslint.config.js file HOT 1
- "eslint.options.fixTypes" Not Working in "Format Document with: ESLint"
- No ESLint configuration (e.g .eslintrc) found for file
- `eslint.packageManager` deprecated but error message says to use it
- How Can I Display All ESLint Errors and Warnings for All Files in VSCode? HOT 1
- "eslint.onIgnoredFiles" seems not working on v3.0.10
- Issues with Rules and Prettier Integration in Versions 3.0.10 and 3.0.8 HOT 6
- Bug: In VSCode, when an incorrect config breaks the ESLint server, the "Restart ESLint Server" command does not work
- After upgrade to version 3.x, json files are broken HOT 19
- Not work of "source.fixAll.eslint": "explicit" on v3.0.10 HOT 3
- Tslint takes hours to process HOT 1
- Document behavior and defaults of useFlatConfig across ESLint v8, v9, v10 HOT 2
- [Suggestion] Mark `warn` eslint level as vscode `DiagnosticSeverity.Information` `info` level HOT 3
- `eslint.execArgv` Configuration is Not Working HOT 3
- JSON schema for useFlatConfig can be more specific HOT 1
- Should plugins still have `eslint.experimental.useFlatConfig` in their settings? HOT 1
- Support custom clickable links in eslint error tooltips HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-eslint.