if several conditions

Open
#682 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Start by locating the plugin's formatting entry point and reproduce the JavaScript example with the multiline condition. Compare the resulting indentation with the intended layout, then add a regression test if the repository has an applicable formatting test location; done means the continuation and closing block are indented correctly.

Written by the indexing model from the issue text.

Description

when you write a if with two condition and format the code, it indent incorrect.

example
function test () {
if ( 1== 1 /* supposed a return carriage here */
&& 2== 2
) {
console.log("ok");
}
}

Dominant language
JavaScript
Stars
1.7k
Forks
236
Avg merge
21d 13h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/TypeScript-Sublime-Plugin

All issues in microsoft/TypeScript-Sublime-Plugin

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.