Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Inconsistent results from disallowSpaceAfterObjectKeys - aligned #2080

Closed
dwiyatci opened this issue Jan 21, 2016 · 1 comment
Closed

Inconsistent results from disallowSpaceAfterObjectKeys - aligned #2080

dwiyatci opened this issue Jan 21, 2016 · 1 comment
Labels

Comments

@dwiyatci
Copy link

Config:

{
  "disallowSpaceAfterObjectKeys": {
    "allExcept": ["aligned"]
  }
}

Cases:

// Invalid: Illegal space after key
const x = {
  a  : 1,
  bcd: 2,
  foo() {
  },
};

// Invalid: Illegal space after key
const y = {
  a  : 1,
  foo() {
  },
  bcd: 2,
  efg: 3,
};

// Valid
const z = {
  a  : 1,
  foo() {
  },
  bcd: 2,
  ef : 3,
};

I would expect them all to be valid. JSCS version: 2.9.0.

@markelog
Copy link
Member

At this point only major and CST related bugs will be fixed.

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