1.0.0 • Published 1 year ago
sirgorstudio-prettier-config v1.0.0
A Prettier configuration preset for keeping consistent code
style
📥 Installation
npm install --save-dev sirgorstudio-prettier-config
yarn add --dev sirgorstudio-prettier-config
pnpm install --save-dev sirgorstudio-prettier-config
🔩 Usage
// .prettierrc.js
module.exports = {
...require("sirgorstudio-prettier-config"),
};
// prettier.config.js
import prettierConfig from "sirgorstudio-prettier-config";
export default {
...prettierConfig,
};
{
"extends": "sirgorstudio-prettier-config"
}
⚙️ Rules overview
Rule | Style | Documentation |
---|---|---|
arrowParens | always | Documentation |
bracketSpacing | true | Documentation |
embeddedLanguageFormatting | auto | Documentation |
htmlWhitespaceSensitivity | css | Documentation |
jsxSingleQuote | false | Documentation |
printWidth | 200000 | Documentation |
proseWrap | preserve | Documentation |
quoteProps | as-needed | Documentation |
requirePragma | false | Documentation |
semi | true | Documentation |
singleQuote | false | Documentation |
tabWidth | 1 | Documentation |
trailingComma | es5 | Documentation |
useTabs | false | Documentation |
1.0.0
1 year ago