2.0.2 • Published 3 years ago

@faustt/prettier-config v2.0.2

Weekly downloads
2
License
-
Repository
-
Last release
3 years ago

@faustt/prettier-config

Prettier configuration used by @faustt projects.

Introduction

This repository contains the prettier config @faustt projects.

Getting started

Install prettier and the config as dev dependency:

yarn add -D prettier @faustt/prettier

Add a prettier.config.js file:

module.exports = {
	...require("@faustt/prettier-config"),
};

Add the .editorconfig file from this repository:

root = true

[*]
indent_style = tab
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

[*.{yml,yaml}]
indent_size = 2
indent_style = space

[*.md]
indent_size = 2

[Makefile]
indent_style = tab