diff --git a/conf/prettier/package.json b/conf/prettier/package.json new file mode 100644 index 00000000..fe87c7e4 --- /dev/null +++ b/conf/prettier/package.json @@ -0,0 +1,4 @@ +{ + "main": "prettier.config.js", + "type": "module" +} diff --git a/conf/prettier/prettier.config.js b/conf/prettier/prettier.config.js new file mode 100644 index 00000000..feee9086 --- /dev/null +++ b/conf/prettier/prettier.config.js @@ -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;