format_sass: Format Sass

View source: R/tools.R

format_sassR Documentation

Format Sass

Description

Runs prettier on Sass (.scss) files in app/styles directory. Requires Node.js installed.

Usage

format_sass(fix = TRUE)

Arguments

fix

If TRUE, fixes formatting. If FALSE, reports formatting errors without fixing them.

Details

You can prevent prettier from formatting a given chunk of your code by adding a special comment:

// prettier-ignore

Read more about ignoring code.

Value

None. This function is called for side effects.


Appsilon/rhino documentation built on Sept. 27, 2024, 7:01 p.m.