@mikey-pro/prettier-config 8.1.0 → 8.1.1

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.
Files changed (2) hide show
  1. package/index.js +19 -33
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,34 +1,10 @@
1
1
  const config = {
2
- // Core formatting
3
- printWidth: 80,
4
- tabWidth: 2,
5
- useTabs: false,
6
- semi: true,
7
- singleQuote: true,
8
- quoteProps: 'as-needed',
9
- trailingComma: 'all',
10
- bracketSpacing: true,
11
- bracketSameLine: false, // new name for jsxBracketSameLine
12
2
  arrowParens: 'always',
13
- proseWrap: 'always',
14
-
15
- // Enhanced whitespace handling
16
- htmlWhitespaceSensitivity: 'css',
17
- endOfLine: 'lf',
3
+ bracketSameLine: false,
4
+ bracketSpacing: true,
18
5
  embeddedLanguageFormatting: 'auto',
19
- singleAttributePerLine: true,
20
-
21
- // Framework-specific
22
- vueIndentScriptAndStyle: false,
23
-
24
- // Svelte
25
- svelteSortOrder: 'options-scripts-markup-styles',
26
- svelteStrictMode: true,
27
- svelteBracketNewLine: true,
28
- svelteAllowShorthand: false,
29
- svelteIndentScriptAndStyle: false,
30
-
31
- // Overrides for specific file types
6
+ endOfLine: 'lf',
7
+ htmlWhitespaceSensitivity: 'css',
32
8
  overrides: [
33
9
  {
34
10
  files: '*.md',
@@ -43,11 +19,21 @@ const config = {
43
19
  },
44
20
  },
45
21
  ],
22
+ printWidth: 80,
23
+ proseWrap: 'always',
24
+ quoteProps: 'as-needed',
25
+ semi: true,
26
+ singleAttributePerLine: true,
27
+ singleQuote: true,
28
+ svelteAllowShorthand: false,
29
+ svelteBracketNewLine: true,
30
+ svelteIndentScriptAndStyle: false,
31
+ svelteSortOrder: 'options-scripts-markup-styles',
32
+ svelteStrictMode: true,
33
+ tabWidth: 2,
34
+ trailingComma: 'all',
35
+ useTabs: false,
36
+ vueIndentScriptAndStyle: false,
46
37
  };
47
38
 
48
39
  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": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "description": "Mikey Pro Prettier configuration",
5
5
  "main": "index.js",
6
6
  "files": [