Skip to content

add /static to prettierignore file #607

Open
@bensgilbert

Description

@bensgilbert

SvelteKit docs specify the static folder as "static assets that should be served as-is"
Formatting any js files is not complying with "as-is"
There's nothing stopping someone from using an external formatter for static files however I frequently encounter the issue where prettier formats my minified js file and increases files size (defeating the point of minification).
This fix is as simple as adding /static at the end of the prettier ignore file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions