@kitschpatrol/prettier-config 4.3.3 → 4.4.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.
@@ -17,12 +17,13 @@
17
17
  "editor.defaultFormatter": "esbenp.prettier-vscode",
18
18
  "editor.formatOnSave": true,
19
19
  "prettier.documentSelectors": [
20
- "**/*.rb",
21
- "**/*.astro",
22
- "**/*.svelte",
23
- "**/.prettierignore",
20
+ "**/.eslintignore",
21
+ "**/.node-version",
24
22
  "**/.npmrc",
25
- "**/.eslintignore"
23
+ "**/.prettierignore",
24
+ "**/*.astro",
25
+ "**/*.rb",
26
+ "**/*.svelte"
26
27
  ],
27
28
  "prettier.enable": true
28
29
  }
package/license.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-2024 Eric Mika
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/prettier-config",
3
- "version": "4.3.3",
3
+ "version": "4.4.0",
4
4
  "type": "module",
5
5
  "description": "Prettier config for @kitschpatrol/shared-config",
6
6
  "repository": {
@@ -35,17 +35,17 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@pinojs/json-colorizer": "^4.0.0",
38
- "@prettier/plugin-php": "^0.22.1",
38
+ "@prettier/plugin-php": "^0.22.2",
39
39
  "@prettier/plugin-ruby": "^4.0.4",
40
- "@prettier/plugin-xml": "^3.2.2",
40
+ "@prettier/plugin-xml": "^3.3.1",
41
41
  "cosmiconfig": "^9.0.0",
42
42
  "execa": "^8.0.1",
43
43
  "fs-extra": "^11.2.0",
44
- "prettier-plugin-astro": "^0.12.3",
45
- "prettier-plugin-pkg": "^0.18.0",
46
- "prettier-plugin-sh": "^0.13.1",
44
+ "prettier-plugin-astro": "^0.13.0",
45
+ "prettier-plugin-pkg": "^0.18.1",
46
+ "prettier-plugin-sh": "^0.14.0",
47
47
  "prettier-plugin-sql": "^0.18.0",
48
- "prettier-plugin-svelte": "^3.1.2",
48
+ "prettier-plugin-svelte": "^3.2.1",
49
49
  "prettier-plugin-tailwindcss": "^0.5.11",
50
50
  "prettier-plugin-toml": "^2.0.1"
51
51
  },
@@ -53,7 +53,7 @@
53
53
  "access": "public"
54
54
  },
55
55
  "scripts": {
56
- "build": "../../scripts/build.ts",
56
+ "build": "../../scripts/build.ts && mdat readme",
57
57
  "cli": "node ./bin/cli.js"
58
58
  }
59
59
  }
package/readme.md CHANGED
@@ -1,5 +1,16 @@
1
+ <!--+ Warning: Content in HTML comment blocks generated by mdat on 2024-02-20 +-->
2
+
3
+ <!-- header -->
4
+
1
5
  # @kitschpatrol/prettier-config
2
6
 
7
+ [![NPM Package](https://img.shields.io/npm/v/@kitschpatrol/prettier-config.svg)](https://npmjs.com/package/@kitschpatrol/prettier-config)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
+
10
+ **Prettier config for @kitschpatrol/shared-config**
11
+
12
+ <!-- /header -->
13
+
3
14
  ## Overview
4
15
 
5
16
  It's a shared [Prettier](https://prettier.io) config.
@@ -37,16 +48,39 @@ You can call it directly, or use the script bundled with the config.
37
48
  Integrate with your `package.json` scripts as you see fit, for example:
38
49
 
39
50
  ```json
40
- ...
41
51
  "scripts": {
42
52
  "lint": "prettier-config --check"
43
53
  "format": "prettier-config --fix"
44
54
  }
45
- ...
46
55
  ```
47
56
 
48
57
  You might need to pass certain plugins in explicitly. The `shared-config --fix` and `shared-config --lint` scripts take care of this for you.
49
58
 
59
+ ### CLI
60
+
61
+ <!-- cli-help -->
62
+
63
+ #### Command: `prettier-config`
64
+
65
+ Prettier config for @kitschpatrol/shared-config
66
+
67
+ Usage:
68
+
69
+ ```txt
70
+ prettier-config [<file|glob> ...]
71
+ ```
72
+
73
+ | Option | Alias | Argument | Description |
74
+ | ---------------- | ----- | -------- | ---------------------------------------------------------------- |
75
+ | `--check` | `-c` | | Check for and report issues. Same as prettier-config. |
76
+ | `--fix` | `-f` | | Fix all auto-fixable issues, and report the un-fixable. |
77
+ | `--init` | `-i` | | Initialize by copying starter config files to your project root. |
78
+ | `--print-config` | `-p` | `<path>` | Print the effective configuration at a certain path. |
79
+ | `--help` | `-h` | | Print this help info. |
80
+ | `--version` | `-v` | | Print the package version. |
81
+
82
+ <!-- /cli-help -->
83
+
50
84
  ## Ruby support
51
85
 
52
86
  Ruby formatting Expects a global Ruby install >=2.7 via `rbenv` at `~/.rbenv/shims/ruby` with the following gems:
@@ -57,4 +91,12 @@ Ruby formatting Expects a global Ruby install >=2.7 via `rbenv` at `~/.rbenv/shi
57
91
  - `syntax_tree-haml`
58
92
  - `syntax_tree-rbs`
59
93
 
60
- Note: Do _not_ add `plugins: ['prettier-plugin-ruby']` to, the per-file scope, it must be global.
94
+ Note: Do _not_ add `plugins: ['prettier-plugin-ruby']` to the per-file scope, it must be global.
95
+
96
+ <!-- license -->
97
+
98
+ ## License
99
+
100
+ [MIT](license.txt) © Eric Mika
101
+
102
+ <!-- /license -->