47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
//#region ../index.ts
|
|
const configIni = {
|
|
files: [".npmrc", ".env", ".env.*"],
|
|
options: { parser: "ini" },
|
|
};
|
|
const configJson = [
|
|
{
|
|
excludeFiles: ["package.json"],
|
|
files: ["*.json"],
|
|
options: {
|
|
jsonRecursiveSort: true,
|
|
plugins: ["prettier-plugin-sort-json"],
|
|
},
|
|
},
|
|
{
|
|
files: ["package.json"],
|
|
options: { plugins: ["prettier-plugin-pkg"] },
|
|
},
|
|
];
|
|
const configClassique = {
|
|
arrowParens: "avoid",
|
|
bracketSameLine: false,
|
|
bracketSpacing: true,
|
|
embeddedLanguageFormatting: "auto",
|
|
endOfLine: "lf",
|
|
experimentalOperatorPosition: "start",
|
|
experimentalTernaries: true,
|
|
htmlWhitespaceSensitivity: "ignore",
|
|
iniSpaceAroundEquals: false,
|
|
jsdocPreferCodeFences: true,
|
|
jsdocVerticalAlignment: true,
|
|
overrides: [configIni, ...configJson],
|
|
plugins: ["prettier-plugin-curly", "prettier-plugin-ini", "prettier-plugin-jsdoc", "prettier-plugin-sh"],
|
|
printWidth: 120,
|
|
proseWrap: "never",
|
|
quoteProps: "as-needed",
|
|
semi: true,
|
|
singleAttributePerLine: true,
|
|
singleQuote: false,
|
|
tabWidth: 2,
|
|
trailingComma: "all",
|
|
tsdoc: true,
|
|
useTabs: false,
|
|
};
|
|
|
|
//#endregion
|
|
export { configClassique, configIni, configJson };
|