mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-22 18:52:45 +01:00
conf/prettier/: experimental shared config
This commit is contained in:
parent
a62664de3e
commit
718c4a8b71
4
conf/prettier/package.json
vendored
Normal file
4
conf/prettier/package.json
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"main": "prettier.config.js",
|
||||
"type": "module"
|
||||
}
|
34
conf/prettier/prettier.config.js
Normal file
34
conf/prettier/prettier.config.js
Normal 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;
|
Loading…
Reference in New Issue
Block a user