mxw / vim-jsx

React JSX syntax highlighting and indenting for vim.
1.59k stars 95 forks source link

Wrong indentation for JSON #94

Closed philolo1 closed 8 years ago

philolo1 commented 8 years ago

I get the following formatting, it seems to be shifted to the right.

const timerStyle = {
  main: {
    borderBottom: '1px solid #d9dae0',
    display: 'flex',
  },
  left: {
      fontSize: 30,
      fontFamily: 'AvenirNext-UltraLight',
      color: '#7f8083',
      padding: 20,
      flex: 1,
    },
    right: {
        fontSize: 30,
        padding: 20,
        fontFamily: 'AvenirNext-UltraLight',
        color: '#7f8083',
      },
};
philolo1 commented 8 years ago

It seems that if i don't use the comma at the last element it seems fine.

mxw commented 8 years ago

Closing for failure to read the README.