Skip to content

[SCSS] Prettier ignores @include arguments #2852

Closed

Description

@ipanasenko

Hi. It seems like Prettier ignores @include arguments completely: no indentation, no hex-colors lowercase

Prettier 1.7.0
Playground link

--parser postcss

Input:

.timeline {
  @include scrollbars(
		    $color: #FFF,
			  	$track-background: #455260,
    $thumb-size: 12px,
  );
  
		  width: 100%;
  	height: 136px;
background: #FFF;
}

Output:

.timeline {
  @include scrollbars(
		    $color: #FFF,
			  	$track-background: #455260,
    $thumb-size: 12px,
  );

  width: 100%;
  height: 136px;
  background: #fff;
}

Expected behavior:

.timeline {
  @include scrollbars(
    $color: #fff,
    $track-background: #455260,
    $thumb-size: 12px,
  );

  width: 100%;
  height: 136px;
  background: #fff;
}

Activity

  1. added
    lang:css/scss/less
    on Sep 18, 2017
  2. added
    locked-due-to-inactivity
    on Jul 6, 2018
  3. locked as resolved and limited conversation to collaborators on Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:css/scss/lesslocked-due-to-inactivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions