update & rename .prettierrc.json

This commit is contained in:
Aminda Suomalainen 2024-07-09 09:42:24 +03:00
parent 51a513d754
commit 5e0127a16f
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 14 additions and 8 deletions

View File

@ -10,7 +10,7 @@ indent_size = tab
max_line_length = 78
end_of_line = lf
[*.{cff,yaml,yml}]
[*.{cff,yaml,yml,json}]
indent_style = space
indent_size = 2

View File

@ -1,7 +0,0 @@
{
"insertPragma": true,
"proseWrap": "always",
"singleAttributePerLine": true,
"plugins": ["@prettier/plugin-ruby", "prettier-plugin-sh"],
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }]
}

13
.prettierrc.json Normal file
View File

@ -0,0 +1,13 @@
{
"bracketSameLine": true,
"endOfLine": "auto",
"insertPragma": true,
"plugins": [
"@prettier/plugin-ruby",
"prettier-plugin-sh"
],
"proseWrap": "always",
"quoteProps": "consistent",
"requirePragma": false,
"singleAttributePerLine": true
}