From 8b01dd37f3c454fbe166180ec06c0f0f24df4c5e Mon Sep 17 00:00:00 2001 From: Bruno Leonardo Michels Date: Thu, 21 Jun 2018 21:28:55 -0300 Subject: [PATCH 1/2] Fix prettier config to run on all file types --- .prettierrc | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.prettierrc b/.prettierrc index 0d89293..61109b6 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,4 @@ { - "parser": "typescript", "arrowParens": "always", "printWidth": 120, "singleQuote": true, diff --git a/package.json b/package.json index f4d7410..95262a3 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ } }, "lint-staged": { - "*.{ts,tsx}": [ + "*.{ts,tsx,scss,md}": [ "prettier --write", "git add" ] From 9e4311a745d8542df371259b07e1b2da835aca78 Mon Sep 17 00:00:00 2001 From: Bruno Leonardo Michels Date: Thu, 21 Jun 2018 21:29:41 -0300 Subject: [PATCH 2/2] Add prettier all files to readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index aa91365..d4fa0ed 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Angular: How To + [![Build Status](https://travis-ci.org/brunolm/angular-how-to.svg?branch=master)](https://travis-ci.org/brunolm/angular-how-to) [![Coverage Status](https://coveralls.io/repos/github/brunolm/angular-how-to/badge.svg?branch=master)](https://coveralls.io/github/brunolm/angular-how-to?branch=master) @@ -13,6 +14,7 @@ Each Pull Request will contain explanation and steps taken to complete a feature - [Create a new Angular project](https://github.com/brunolm/angular-how-to/pull/1) - [Add prettier config](https://github.com/brunolm/angular-how-to/pull/10) - [Prettier git hook pre-commit](https://github.com/brunolm/angular-how-to/pull/18) + - [Running prettier on ts, tsx, scss, md](https://github.com/brunolm/angular-how-to/pull/20) ### Upgrades