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 +}