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.

New MemberExpression functionality in indent rule is a breaking builds

See original GitHub issue

What version of ESLint are you using?

3.2.0

What parser (default, Babel-ESLint, etc.) are you using?

default

Please show your full configuration:

indent: 2

What did you do? Please include the actual source code causing the issue.

This throws an error:

var foo = bar.baz()
            .bip()
            .boop();

What did you expect to happen?

I expected the indentation to be counted from bar and not var. Or at least to be able to turn off indentation checking for MemberExpressions. So I expected no error.

What actually happened? Please include the actual, raw output from ESLint.

error Expected indentation of 2 space characters but found 12

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:28 (27 by maintainers)

github_iconTop GitHub Comments

3reactions
connor4312commented, Jul 30, 2016

Maybe adding an alerting system would be beneficial for ESLint. It looks like Greenkeeper immediately caused failures on ~100 repos (including our own) after the last ESLint version was pushed, it would be simple to create a script that scrapes that a few minutes after publishing. If a non-major version causes an abnormal amount of Greenkeeper “breaking” PRs, that is probably a pretty good indicator that something is wrong.

1reaction
nzakascommented, Aug 1, 2016

@ljharb yes, exactly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make prettier to format like eslint - javascript - Stack Overflow
Parameters are indented but the closing parenthesis is not and then, chained method would be indented the same way parameters are. This doesn't ......
Read more >
@typescript-eslint/experimental-utils Code Examples | Snyk
Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately. Enable here ... function binaryExp(node)...
Read more >
@babel/plugin-transform-member-expression-literals | Yarn
Fast, reliable, and secure dependency management.
Read more >
indent - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Changelog - JSCS
Anyways, there are three new rules, a couple of changes for the airbnb preset and important fixes for disallowSpacesInsideTemplateStringPlaceholders and ...
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