From af53477d3665751632448a2eea7b61f9359b8dee Mon Sep 17 00:00:00 2001 From: Jay McDoniel Date: Fri, 5 Aug 2022 08:33:40 -0700 Subject: [PATCH] chore: make prettier format rc files as json --- .c8rc | 5 ++--- .czrc | 3 ++- .lintstagedrc | 12 ++++-------- .prettierrc | 6 ++++++ 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.c8rc b/.c8rc index 4a7c8b06a..3b9067beb 100644 --- a/.c8rc +++ b/.c8rc @@ -1,5 +1,4 @@ { "exclude": ["integration", "**/test/*"], - "reporter": ["lcov", "text" - ] -} \ No newline at end of file + "reporter": ["lcov", "text"] +} diff --git a/.czrc b/.czrc index 6ab2bbc26..603b8c4e9 100644 --- a/.czrc +++ b/.czrc @@ -1,3 +1,4 @@ { "path": "./node_modules/cz-conventional-changelog" -} \ No newline at end of file +} + diff --git a/.lintstagedrc b/.lintstagedrc index ad1fa439c..faa7e60d3 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,9 +1,5 @@ { - "*.ts": [ - "prettier --write", - "eslint --ext ts" - ], - "*.{md,html,json,js}": [ - "prettier --write" - ] -} \ No newline at end of file + "*.ts": ["prettier --write", "eslint --ext ts"], + "*.{md,html,json,js}": ["prettier --write"] +} + diff --git a/.prettierrc b/.prettierrc index 54f6445aa..23090d575 100644 --- a/.prettierrc +++ b/.prettierrc @@ -12,6 +12,12 @@ "trailingComma": "none", "proseWrap": "never" } + }, + { + "files": ".*rc", + "options": { + "parser": "json" + } } ] }