From a4dfac7aca060cda49af418bbffab2e4cea04efb Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 7 Jul 2024 09:40:33 +0300 Subject: [PATCH] rename .prettierrc to .prettierrc.json This will bring it under pretty-format-json --- .gitignore | 2 +- .prettierrc | 23 ----------------------- .prettierrc.json | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 24 deletions(-) delete mode 100644 .prettierrc create mode 100644 .prettierrc.json diff --git a/.gitignore b/.gitignore index c59d40f5..80e12dc6 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ !.nvmrc !.pre-commit-config.yaml !.prettierignore -!.prettierrc +!.prettierrc.json !.renovate-shared.json* !.reuse diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index d9881df7..00000000 --- a/.prettierrc +++ /dev/null @@ -1,23 +0,0 @@ -{ - "insertPragma": true, - "proseWrap": "always", - "singleAttributePerLine": true, - "plugins": [ - "@prettier/plugin-ruby", - "@prettier/plugin-xml", - "prettier-plugin-nginx", - "prettier-plugin-sh", - "prettier-plugin-toml" - ], - "overrides": [ - { "files": ".prettierrc", "options": { "parser": "json" } }, - { - "files": "conf/librewolf.overrides.cfg", - "options": { "parser": "babel" } - }, - { - "files": "conf/autoconfig.js.online", - "options": { "parser": "babel" } - } - ] -} diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 00000000..1f71020e --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,32 @@ +{ + "insertPragma": true, + "overrides": [ + { + "files": ".prettierrc", + "options": { + "parser": "json" + } + }, + { + "files": "conf/librewolf.overrides.cfg", + "options": { + "parser": "babel" + } + }, + { + "files": "conf/autoconfig.js.online", + "options": { + "parser": "babel" + } + } + ], + "plugins": [ + "@prettier/plugin-ruby", + "@prettier/plugin-xml", + "prettier-plugin-nginx", + "prettier-plugin-sh", + "prettier-plugin-toml" + ], + "proseWrap": "always", + "singleAttributePerLine": true +}