-
Notifications
You must be signed in to change notification settings - Fork 32
Column start greater than line length #239
Comments
Are you able to share the file you are seeing this on? Without that, or a minimal reproduction case, there isn't really anything that can be done to diagnose this. |
i can reproduce with a very simple file that only contains:
|
This also occurs with a more complex config which uses |
Disabled linter-eslint to isolate the issue. Still occurs with just linter-jscs enabled.
(I know this is a bit of a dead end with jscs merging with eslint. But I'm hoping to continue using jscs to fix some things that eslint doesn't fix yet, until eslint's rules gets some fixer updates.) |
It looks like that rule is horribly broken with that code: Tested with this folder setup: linter-jscs_GH239.zip As this is confirmed to be a bug in |
oh nice, thanks! yeah could you open the bug and link it here? |
might be related to jscs-dev/node-jscs#2219 ? |
Possibly, I'm guessing that is just a symptom of the rules not parsing the new CST properly though. I'll file it over there and let the maintainers decide if it's a duplicate since I don't know the internals enough to say for sure. |
Filed the above issue, let's see what they say. |
Closing as fixed in jscs-dev/node-jscs#2252. |
Version
4.0.0
Issue
Similar to #167
I'm getting "Error: Column start (2) greater than line length (0)" with a very simple .jscsrc config:
If I remove that second rule,
validateNewlineAfterArrayElements
, the error no longer occurs..Full trace:
The text was updated successfully, but these errors were encountered: