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

js-standard not reporting indentation error in JSX files #126

Closed
derekr opened this issue May 1, 2015 · 1 comment

Comments

@derekr
Copy link

commented May 1, 2015

Might be an eslint issue, but not 100% sure, but it was working as of a few days ago.

var React = require('react')

var ControlPanel = React.createClass({

  displayName: 'ControlPanel',

  propTypes: {
      children: React.PropTypes.oneOfType([
          React.PropTypes.array,
             React.PropTypes.element
        ])
  },

  render: function () {
    return (
        <div className='control-panel'>
            {this.props.children}
        </div>
    )
  }
})

module.exports = ControlPanel

Will report no indentation issues.

@derekr

This comment has been minimized.

Copy link
Author

commented May 1, 2015

Ah I suppose indentation within arrays/object might be relaxed. It'll choke on indentation within the render function and elsewhere in the scope of the file.

@derekr derekr closed this May 1, 2015

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
1 participant
You can’t perform that action at this time.