@mikey-pro/prettier-config 7.2.5 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +38 -6
- package/package.json +10 -2
package/index.js
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
//
|
|
1
|
+
const config = {
|
|
2
|
+
// Core formatting
|
|
3
|
+
printWidth: 80,
|
|
3
4
|
tabWidth: 2,
|
|
4
5
|
useTabs: false,
|
|
5
|
-
|
|
6
|
+
semi: true,
|
|
6
7
|
singleQuote: true,
|
|
8
|
+
quoteProps: 'as-needed',
|
|
7
9
|
trailingComma: 'all',
|
|
8
10
|
bracketSpacing: true,
|
|
11
|
+
bracketSameLine: false, // new name for jsxBracketSameLine
|
|
12
|
+
arrowParens: 'always',
|
|
9
13
|
proseWrap: 'always',
|
|
10
14
|
|
|
15
|
+
// Enhanced whitespace handling
|
|
16
|
+
htmlWhitespaceSensitivity: 'css',
|
|
17
|
+
endOfLine: 'lf',
|
|
18
|
+
embeddedLanguageFormatting: 'auto',
|
|
19
|
+
singleAttributePerLine: true,
|
|
20
|
+
|
|
21
|
+
// Framework-specific
|
|
22
|
+
vueIndentScriptAndStyle: false,
|
|
23
|
+
|
|
11
24
|
// Svelte
|
|
12
25
|
svelteSortOrder: 'options-scripts-markup-styles',
|
|
13
26
|
svelteStrictMode: true,
|
|
@@ -15,7 +28,26 @@ module.exports = {
|
|
|
15
28
|
svelteAllowShorthand: false,
|
|
16
29
|
svelteIndentScriptAndStyle: false,
|
|
17
30
|
|
|
18
|
-
//
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
// Overrides for specific file types
|
|
32
|
+
overrides: [
|
|
33
|
+
{
|
|
34
|
+
files: '*.md',
|
|
35
|
+
options: {
|
|
36
|
+
proseWrap: 'preserve',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
files: '*.json',
|
|
41
|
+
options: {
|
|
42
|
+
parser: 'json',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
],
|
|
21
46
|
};
|
|
47
|
+
|
|
48
|
+
export default config;
|
|
49
|
+
|
|
50
|
+
// Support CommonJS environments
|
|
51
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
52
|
+
module.exports = config;
|
|
53
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/prettier-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Mikey Pro Prettier configuration",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -31,5 +31,13 @@
|
|
|
31
31
|
"style",
|
|
32
32
|
"guide"
|
|
33
33
|
],
|
|
34
|
-
"author": "Mikl Wolfe <wolfe@mikl.io> (https://mikl.io)"
|
|
34
|
+
"author": "Mikl Wolfe <wolfe@mikl.io> (https://mikl.io)",
|
|
35
|
+
"type": "module",
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"prettier": "^3.2.0"
|
|
38
|
+
},
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">=18.0.0",
|
|
41
|
+
"npm": ">=9.0.0"
|
|
42
|
+
}
|
|
35
43
|
}
|