rename .prettierrc to .prettierrc.json

This will bring it under pretty-format-json
This commit is contained in:
Aminda Suomalainen 2024-07-07 09:40:33 +03:00
parent c8149554c6
commit a4dfac7aca
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 33 additions and 24 deletions

2
.gitignore vendored
View File

@ -14,7 +14,7 @@
!.nvmrc
!.pre-commit-config.yaml
!.prettierignore
!.prettierrc
!.prettierrc.json
!.renovate-shared.json*
!.reuse

View File

@ -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" }
}
]
}

32
.prettierrc.json Normal file
View File

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