-
Notifications
You must be signed in to change notification settings - Fork 78
Fixes #36. Add condition to decreaseIndentPattern regex to support self closing-tags #131
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
Conversation
|
Hi! Thanks for contributing! Indentation test file is located in So adding something like // sample.jsx
<div>
<span
foo="bar"
bar="foo"
/>
<span barfoo="123" />
<span>
foo
</span>
</div>
// sample-formatted.jsx
<div>
<span
foo="bar"
bar="foo"
/>
<span barfoo="123" />
<span
foo="bar"
bar="foo" />
<span>
foo
</span>
</div>ps. currently it seems that one tokenizer test is failing against the latest lang-javascript package that atom-react is extending with JSX. Feel free to ignore that for now. |
|
ps ignore appveyor (I should remove that as it causes more trouble than it helps) |
|
@orktes thanks for the quick response! Will work this later today (hopefully). Just to be clear in regards to #131, this isn't really reading the eslint config. I guess it may be possible to do that, but I didn't think it was necessary. This seems more like a bug than preference (to me, but I don't know if everyone writes jsx like me). This is basically what I end up with when I use self-closing tags right now: All this pr does is this: |
|
Yeap. My own preference has been to close after last attribute but I added a separate issue about the eslint conf stuff. On Monday, 4 January 2016, Jeffrey E. Shaver II notifications@github.com
Ystävällisin terveisin, |
|
@orktes I changed |
…ort self-closing tags
|
@orktes is there something else I need to do here? |
|
@orktes anything else on this? |
|
Hi sorry for the delay. Been terribly busy with work. All good! |
Fixes #36. Add condition to decreaseIndentPattern regex to support self closing-tags
|
caused regression had to revert so we can release more urgent 1.4 related fixes. |
If there is any more info you need, please let me know.
I assume that i will need to add some tests maybe, but I didn't see the correct place to put them. Guidance there?