2025-11-04
This commit is contained in:
parent
e4eaf6404a
commit
c986904382
1626 changed files with 5641 additions and 1921 deletions
|
|
@ -1,56 +1,8 @@
|
|||
/** @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 fichiers XML
|
||||
{
|
||||
files: ["*.xml"],
|
||||
options: {
|
||||
bracketSameLine: false,
|
||||
parser: "xml",
|
||||
plugins: ["@prettier/plugin-xml"],
|
||||
printWidth: 120,
|
||||
singleAttributePerLine: true,
|
||||
tabWidth: 2,
|
||||
xmlQuoteAttributes: "double",
|
||||
xmlSelfClosingSpace: true,
|
||||
xmlSortAttributesByKey: true,
|
||||
xmlWhitespaceSensitivity: "strict",
|
||||
},
|
||||
},
|
||||
// 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,
|
||||
import { configClassique, configXml } from "@gcch/configuration-prettier";
|
||||
|
||||
const config = {
|
||||
...configClassique,
|
||||
overrides: [configXml],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue