version bump and build

This commit is contained in:
2025-07-15 14:39:37 +02:00
parent 21c31445c3
commit 6e769bad4b
6 changed files with 149 additions and 118 deletions

View File

@@ -1,43 +1,57 @@
module.exports = {
// line length
// Line length - optimized for modern development
printWidth: 100,
// indentation type
// Use spaces instead of tabs for consistency
useTabs: false,
// whether to prefer ' over "
singleQuote: false,
// whether we want to quote props (only-if-they-have-a-dash)
quoteProps: "as-needed",
// add trailing comma's everwhere as long as it's supported by es5
trailingComma: "es5",
// space brackets method ( param1, param2 ) { }
bracketSpacing: true,
// places the > sign on a newline when closing a long html tag
jsxBracketSameLine: false,
// always add parentheses on arrow functions (x) => { }
arrowParens: "always",
// ignore pragma, run prettier on all files
requirePragma: false,
// preserve markdown text as-is
proseWrap: "preserve",
// make css leading in whitespace sensitivity
htmlWhitespaceSensitivity: "css",
// always end lines with lf
endOfLine: "lf",
// tabs are 2 spaces.
tabWidth: 2,
// always end statements with a semicolon
semi: true
// Use double quotes for consistency with JSON and HTML attributes
singleQuote: false,
// JSX quotes - use double quotes to match regular quotes
jsxSingleQuote: false,
// Only quote object properties when needed
quoteProps: "as-needed",
// Use trailing commas for all ES2017+ features (better for git diffs)
trailingComma: "all",
// Add spaces inside object braces { foo: bar }
bracketSpacing: true,
// Put closing > on new line for JSX elements (better readability)
bracketSameLine: false,
// Always use parentheses around arrow function parameters for consistency
arrowParens: "always",
// Format all files, don't require pragma comments
requirePragma: false,
insertPragma: false,
// Preserve markdown line breaks as-is (better for documentation)
proseWrap: "preserve",
// CSS whitespace handling - strict for better consistency
htmlWhitespaceSensitivity: "css",
// Consistent line endings across platforms
endOfLine: "lf",
// Always include semicolons for clarity and consistency
semi: true,
// Don't force single attribute per line (allows flexibility)
singleAttributePerLine: false,
// Format embedded languages automatically
embeddedLanguageFormatting: "auto",
// Experimental: Control Vue SFC formatting
vueIndentScriptAndStyle: false,
// Enhanced experimental features for future-proofing
experimentalTernaries: false,
};

View File

@@ -1,13 +1,20 @@
{
"name": "@mastermindzh/prettier-config",
"version": "1.0.0",
"description": "My preferred prettier config",
"version": "1.1.0",
"description": "My preferred prettier config with modern best practices",
"main": "index.js",
"type": "commonjs",
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
"prettier": ">=3.0.0"
},
"scripts": {
"patch": "npm --no-git-tag-version version patch",
"minor": "npm --no-git-tag-version version minor",
"major": "npm --no-git-tag-version version major",
"release": "git add -A && git commit -m 'version bump and build' && npm publish --access public && echo 'All done, don't forget to push!'",
"release": "git add -A && git commit -m \"version bump and build\" && npm publish --access public && echo \"All done, don't forget to push!\"",
"release-patch": "npm run patch && npm run release",
"release-minor": "npm run minor && npm run release",
"release-major": "npm run major && npm run release"
@@ -19,14 +26,24 @@
"keywords": [
"prettier",
"config",
"configuration",
"code-style",
"formatting",
"javascript",
"typescript",
"react",
"vue",
"mastermindzh",
"rick van lieshout",
"lieshout"
"rick van lieshout"
],
"author": "Rick van Lieshout",
"license": "MIT",
"bugs": {
"url": "https://github.com/Mastermindzh/prettier-config/issues"
},
"homepage": "https://github.com/Mastermindzh/prettier-config#readme"
"homepage": "https://github.com/Mastermindzh/prettier-config#readme",
"files": [
"index.js",
"README.md"
]
}