conf/prettier/: experimental shared config

This commit is contained in:
Aminda Suomalainen 2024-07-14 14:14:39 +03:00
parent a62664de3e
commit 718c4a8b71
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 38 additions and 0 deletions

4
conf/prettier/package.json vendored Normal file
View File

@ -0,0 +1,4 @@
{
"main": "prettier.config.js",
"type": "module"
}

View File

@ -0,0 +1,34 @@
/** @format */
// prettier.config.js, .prettierrc.js, prettier.config.mjs, or .prettierrc.mjs
/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
const config = {
bracketSameLine: true,
endOfLine: "auto",
insertPragma: true,
overrides: [
{
files: ".prettierrc",
options: {
parser: "json",
},
},
],
plugins: [
"@prettier/plugin-ruby",
"@prettier/plugin-xml",
"prettier-plugin-nginx",
"prettier-plugin-sh",
"prettier-plugin-toml",
],
proseWrap: "always",
quoteProps: "consistent",
requirePragma: false,
singleAttributePerLine: true,
};
export default config;