New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`indent` rule are missing a problem at `else` when I'm using Stroustrup style. #5218

Closed
mysticatea opened this Issue Feb 12, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@mysticatea
Member

mysticatea commented Feb 12, 2016

indent rule are missing a problem at else when I'm using Stroustrup style.
On v2.0.0-rc.1.

Code: test.js

/* eslint indent: 2*/
{
    if (a) {
        foo();
    }
  else {
        bar();
    }
}

Expected:

$ eslint test.js --no-ignore --no-eslintrc

test.js
  6:2  error  Expected indentation of 4 space characters but found 2  indent

✖ 1 problems (1 errors, 0 warnings)

Actual:

No errors.

@gyandeeps gyandeeps added accepted and removed evaluating labels Feb 12, 2016

gyandeeps added a commit that referenced this issue Feb 19, 2016

@gyandeeps gyandeeps closed this in d1d62c6 Feb 22, 2016

gyandeeps added a commit that referenced this issue Feb 22, 2016

Merge pull request #5346 from eslint/issue5218
Fix: indent check for else keyword with Stroustrup style (fixes #5218)

@eslint eslint bot locked and limited conversation to collaborators Feb 6, 2018

@eslint eslint bot added the archived due to age label Feb 6, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.