init
This commit is contained in:
commit
8e75a421d2
23 changed files with 2936 additions and 0 deletions
54
prettier.config.js
Normal file
54
prettier.config.js
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
// @ts-check
|
||||
|
||||
/** @type {import("prettier").Config} */
|
||||
export default {
|
||||
arrowParens: "avoid",
|
||||
bracketSameLine: false,
|
||||
bracketSpacing: true,
|
||||
embeddedLanguageFormatting: "auto",
|
||||
endOfLine: "lf",
|
||||
experimentalTernaries: true,
|
||||
htmlWhitespaceSensitivity: "ignore",
|
||||
overrides: [
|
||||
// Pour les fichiers PHP sans HTML
|
||||
{
|
||||
files: ["*.php"],
|
||||
options: {
|
||||
braceStyle: "1tbs",
|
||||
parser: "php",
|
||||
phpVersion: "8.2",
|
||||
plugins: ["@prettier/plugin-php"],
|
||||
trailingCommaPHP: true,
|
||||
},
|
||||
},
|
||||
// Pour les modèles Twig
|
||||
{
|
||||
files: ["*.twig"],
|
||||
options: {
|
||||
plugins: ["@zackad/prettier-plugin-twig-melody"],
|
||||
twigAlwaysBreakObjects: false,
|
||||
twigFollowOfficialCodingStandards: true,
|
||||
twigOutputEndblockName: true,
|
||||
twigPrintWidth: 120,
|
||||
twigSingleQuote: false,
|
||||
},
|
||||
},
|
||||
// package.json
|
||||
{
|
||||
files: ["package.json"],
|
||||
options: {
|
||||
plugins: ["prettier-plugin-pkg"],
|
||||
},
|
||||
},
|
||||
],
|
||||
plugins: ["prettier-plugin-sh"],
|
||||
printWidth: 120,
|
||||
proseWrap: "never",
|
||||
quoteProps: "as-needed",
|
||||
semi: true,
|
||||
singleAttributePerLine: true,
|
||||
singleQuote: false,
|
||||
tabWidth: 2,
|
||||
trailingComma: "all",
|
||||
useTabs: false,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue