question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ignoreEOLComments has additional properties

See original GitHub issue

From @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:

  1. Open a front-end project
  2. 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xovelcommented, Sep 23, 2017

I cannot reproduce this quirk problem again.

BUT, I’ve solved it by reinstalling eslint locally(in current node_modules, without -g), the warning is not shown again. I think just using npm uninstall eslint can solve it too.

It is maybe caused by the old version eslint. The version of eslint in our project before update is v3.0.1, but ignoreEOLComments is supported in v4.0.0.

0reactions
dbaeumercommented, Sep 25, 2017

@xovel thanks for the clarification. Closing the issue then.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found