@kitschpatrol/prettier-config 3.0.3 → 3.1.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.
@@ -1,11 +1,16 @@
1
- import sharedConfig from '@kitschpatrol/prettier-config';
1
+ import sharedConfig from '@kitschpatrol/prettier-config'
2
2
 
3
3
  /** @type {import("prettier").Config} */
4
4
  const localConfig = {
5
- // Overrides
6
- };
7
-
5
+ // Config overrides
6
+ // overrides: [
7
+ // ...sharedConfig.overrides,
8
+ // {
9
+ // // Per-file overrides overrides
10
+ // },
11
+ // ],
12
+ }
8
13
  export default {
9
14
  ...sharedConfig,
10
15
  ...localConfig,
11
- };
16
+ }
package/main.js CHANGED
@@ -1,9 +1,15 @@
1
- import { homedir } from 'node:os';
1
+ import { homedir } from 'node:os'
2
2
 
3
3
  /** @type {import("prettier").Config} */
4
4
  const config = {
5
5
  bracketSpacing: true,
6
6
  overrides: [
7
+ {
8
+ files: ['*.md', '*.mdx', '*.yml'],
9
+ options: {
10
+ useTabs: false,
11
+ },
12
+ },
7
13
  {
8
14
  files: '*.astro',
9
15
  options: {
@@ -43,10 +49,11 @@ const config = {
43
49
  'prettier-plugin-toml',
44
50
  ],
45
51
  printWidth: 100,
52
+ semi: false,
46
53
  singleQuote: true,
47
54
  tabWidth: 2,
48
55
  trailingComma: 'all',
49
56
  useTabs: true,
50
- };
57
+ }
51
58
 
52
- export default config;
59
+ export default config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/prettier-config",
3
- "version": "3.0.3",
3
+ "version": "3.1.0",
4
4
  "type": "module",
5
5
  "description": "Prettier config for @kitschpatrol/shared-config",
6
6
  "repository": {
package/readme.md CHANGED
@@ -13,7 +13,7 @@ To use just this Prettier config in isolation:
13
13
  1. Install the `.npmrc` in your project root. This is required for correct PNPM behavior:
14
14
 
15
15
  ```sh
16
- pnpm dlx @kitschpatrol/repo-config
16
+ pnpm dlx @kitschpatrol/repo-config --init
17
17
  ```
18
18
 
19
19
  2. Add the package: