0.0.13
This commit is contained in:
parent
91d4573bff
commit
8de937e801
9 changed files with 105 additions and 126 deletions
7
dist/index.d.mts
vendored
7
dist/index.d.mts
vendored
|
|
@ -8,11 +8,6 @@ type Overrides = Readonly<{
|
|||
}>;
|
||||
declare const configIni: Overrides;
|
||||
declare const configJson: ReadonlyArray<Overrides>;
|
||||
/** Pour les fichiers PHP. */
|
||||
declare const configPhp: Overrides;
|
||||
/** Pour les fichiers XML. */
|
||||
declare const configXml: Overrides;
|
||||
declare const configClassique: Readonly<Config>;
|
||||
declare const configWordPress: Readonly<Config>;
|
||||
//#endregion
|
||||
export { configClassique, configIni, configJson, configPhp, configWordPress, configXml };
|
||||
export { configClassique, configIni, configJson };
|
||||
|
|
|
|||
37
dist/index.mjs
vendored
37
dist/index.mjs
vendored
|
|
@ -5,11 +5,11 @@ const configIni = {
|
|||
};
|
||||
const configJson = [
|
||||
{
|
||||
files: ["*.json"],
|
||||
excludeFiles: ["package.json"],
|
||||
files: ["*.json"],
|
||||
options: {
|
||||
plugins: ["prettier-plugin-sort-json"],
|
||||
jsonRecursiveSort: true,
|
||||
plugins: ["prettier-plugin-sort-json"],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -17,33 +17,6 @@ const configJson = [
|
|||
options: { plugins: ["prettier-plugin-pkg"] },
|
||||
},
|
||||
];
|
||||
/** Pour les fichiers PHP. */
|
||||
const configPhp = {
|
||||
files: ["*.php"],
|
||||
options: {
|
||||
braceStyle: "1tbs",
|
||||
parser: "php",
|
||||
phpVersion: "auto",
|
||||
plugins: ["@prettier/plugin-php"],
|
||||
trailingCommaPHP: true,
|
||||
},
|
||||
};
|
||||
/** Pour les fichiers XML. */
|
||||
const configXml = {
|
||||
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",
|
||||
},
|
||||
};
|
||||
const configClassique = {
|
||||
arrowParens: "avoid",
|
||||
bracketSameLine: false,
|
||||
|
|
@ -69,10 +42,6 @@ const configClassique = {
|
|||
tsdoc: true,
|
||||
useTabs: false,
|
||||
};
|
||||
const configWordPress = {
|
||||
...configClassique,
|
||||
overrides: [...(configClassique.overrides ?? []), configIni, ...configJson, configPhp, configXml],
|
||||
};
|
||||
|
||||
//#endregion
|
||||
export { configClassique, configIni, configJson, configPhp, configWordPress, configXml };
|
||||
export { configClassique, configIni, configJson };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue