From 942153e61c154788b6efefc8b5cca9a5189e34c3 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Mon, 29 Jul 2024 10:02:16 +0200 Subject: [PATCH] fix: Fix invalid JSON file with terms For some reason, Prettier started adding trailing commas to JSONC files, so adding an override for them. Fixes #78 --- .prettierrc | 29 +++++++++++++++++------------ terms.jsonc | 2 +- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.prettierrc b/.prettierrc index 448069d..3aea8c3 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,14 +1,19 @@ { - "singleQuote": true, - "trailingComma": "es5", - "overrides": [ - { - "files": "*.md", - "options": { - "printWidth": 70, - "trailingComma": "none", - "proseWrap": "never" - } - } - ] + "singleQuote": true, + "overrides": [ + { + "files": "*.jsonc", + "options": { + "trailingComma": "none" + } + }, + { + "files": "*.md", + "options": { + "printWidth": 70, + "trailingComma": "none", + "proseWrap": "never" + } + } + ] } diff --git a/terms.jsonc b/terms.jsonc index 88c595e..4b9b6d2 100644 --- a/terms.jsonc +++ b/terms.jsonc @@ -288,5 +288,5 @@ ["flackyness", "flakiness"], ["pacakge(s)?", "package$1"], ["tilda", "tilde"], - ["falsey", "falsy"], + ["falsey", "falsy"] ]