Skip to content
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

Non flattened imports #493

Open
maikelmclauflin opened this issue Dec 15, 2017 · 0 comments
Open

Non flattened imports #493

maikelmclauflin opened this issue Dec 15, 2017 · 0 comments

Comments

@maikelmclauflin
Copy link

I'm probably just doing it wrong but I do not seem to be able to get my imports to stay stacked on top of one another

import {
    connect
} from 'react-redux'

always turns into

import { connect } from 'react-redux'

I'm pretty sure i have the right options in there.

{

  "esformatter": {
    "allowShebang": true
  },

  "indent": {
    "value": "    ",
    "alignComments": true
  },

  "lineBreak": {
    "value": "\n",
    "before": {
      "VariableDeclaration": 1,
      "FunctionDeclaration": ">=2",
      "FunctionDeclarationClosingBrace": "<=1",
      "FunctionExpressionClosingBrace": "<=1",
      "ObjectPatternClosingBrace": 1
    },
    "after": {
      "ObjectPatternComma": 1,
      "ObjectPatternOpeningBrace": 1,
      "FunctionDeclarationOpeningBrace": ">=0",
      "FunctionExpressionOpeningBrace": ">=0",
      "FunctionDeclarationClosingBrace": "<=1",
      "FunctionExpressionClosingBrace": "<=1"
    }
  },

  "whiteSpace": {
    "value": " ",
    "removeTrailing": 1,
    "after": {
      "ParameterComma": 1,
      "Property": 1,
      "FunctionReservedWord": 1,
      "FunctionDeclarationOpeningBrace": 0
    },
    "before": {
      "VariableValue": 1,
      "Property": 1,
      "PropertyValue": 1,
      "FunctionDeclarationClosingBrace": ">=0"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant