0.0.14
This commit is contained in:
parent
8de937e801
commit
c3759fc377
12 changed files with 170 additions and 155 deletions
86
dist/index.mjs
vendored
86
dist/index.mjs
vendored
|
|
@ -1,47 +1,53 @@
|
|||
//#region ../index.ts
|
||||
const configIni = {
|
||||
files: [".npmrc", ".env", ".env.*"],
|
||||
options: { parser: "ini" },
|
||||
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 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,
|
||||
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 };
|
||||
export { configClassique, configIni, configJson };
|
||||
Loading…
Add table
Add a link
Reference in a new issue