ignoreEOLComments has additional properties
See original GitHub issueFrom @xovel on September 17, 2017 16:35
- VSCode Version: Code 1.16.1 (27492b6bf3acb0775d82d2f87b25a93490673c6d, 2017-09-14T16:38:23.027Z)
- OS Version: Windows_NT x64 10.0.15063
- Extensions:
Extension | Author (truncated) | Version |
---|---|---|
vscode-color | ans | 0.4.5 |
vscode-eslint | dba | 1.3.1 |
githistory | don | 0.2.3 |
beautify | Hoo | 1.1.1 |
vscode-regexp-preivew | le0 | 0.0.3 |
sublime-keybindings | ms- | 2.9.1 |
debugger-for-chrome | msj | 3.3.0 |
material-icon-theme | PKi | 2.2.1 |
java | red | 0.10.0 |
Steps to Reproduce:
- Open a front-end project
- Warning come…
Warning text:
e:\svn\drs-frontend.eslintrc.yml: Configuration for rule “no-multi-spaces” is invalid: Value “data[“0”].ignoreEOLComments” has additional properties.
Reproduces without extensions: Yes
My .eslintrc.yml:
...
no-magic-numbers: 0
# 禁止多个空格
# no-multi-spaces: 0
no-multi-spaces:
- 2
-
ignoreEOLComments: true
exceptions:
Property: true
VariableDeclarator: true
ImportDeclaration: true
# 禁止多行字符串
no-multi-str: 1
...
Copied from original issue: Microsoft/vscode#34544
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
no-multi-spaces - ESLint - Pluggable JavaScript Linter
"ignoreEOLComments": true (defaults to false ) ignores multiple spaces before comments that occur at the end of lines; "exceptions": { "Property": true }...
Read more >eslint - What does "has additional properties" mean in an error ...
I am making an .eslintrc file that includes an "indent" rule. The configuration for the rule is as follows: "indent": ["error", 2, {...
Read more >eslintrc.json - Google Git
"no-extra-parens": "error",. "no-prototype-builtins": "error", ... "ignoreEOLComments": true,. "exceptions": { ... "no-restricted-properties": "error",.
Read more >parsing error: cannot read properties of undefined ... - You.com
This error occurs because react-scripts has a direct dependency on the 2.xx range of @typescript-eslint/parser and @typescript-eslint/eslint-plugin . You can ...
Read more >Eslint Rule Being Ignored - ADocLib
... object with the following properties: Examples of correct code for this rule with the { "ignoreEOLComments": false } (default) option:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I cannot reproduce this quirk problem again.BUT, I’ve solved it by reinstalling
eslint
locally(in currentnode_modules
, without-g
), the warning is not shown again. I think just usingnpm uninstall eslint
can solve it too.It is maybe caused by the old version eslint. The version of
eslint
in our project before update isv3.0.1
, butignoreEOLComments
is supported inv4.0.0
.@xovel thanks for the clarification. Closing the issue then.