Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Invalid position given by 'W010' #524

Open
osorli opened this issue Oct 11, 2017 · 1 comment
Open

Invalid position given by 'W010' #524

osorli opened this issue Oct 11, 2017 · 1 comment
Labels

Comments

@osorli
Copy link

osorli commented Oct 11, 2017

JSHint returned a point that did not exist in the document being edited.
Rule: W010
Requested point: 270:35

Debug information:

Atom version: 1.21.0
linter-jshint version: v3.1.6
JSHint version: jshint v2.9.5
Hours since last Atom restart: 1.8
Platform: darwin
Current file's scopes: [
  "source.js",
  "meta.method-call.js",
  "meta.arguments.js",
  "punctuation.definition.function.body.begin.bracket.curly.js"
]
linter-jshint configuration: {
  "executablePath": "",
  "lintInlineJavaScript": false,
  "disableWhenNoJshintrcFileInPath": false,
  "scopes": [
    "source.js",
    "source.js-semantic"
  ],
  "jshintFileName": ".jshintrc",
  "jshintignoreFilename": ".jshintignore"
}
@Arcanemagus
Copy link
Member

Assuming that you are indenting your file with tabs this is another case of jshint/jshint#3151. There are reports that if you set your indent property of your JSHint configuration to 1 this issue can be worked around. If you don't have a .jshintrc file the following should work:

{
  "indent": 1
}

If anyone is directed here and isn't using tabs to indent please provide code to reproduce this so an issue can be filed on JSHint to get this fixed there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants