@mikey-pro/prettier-config 9.0.1 → 9.0.7

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/README.md +22 -17
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,26 +1,23 @@
1
- <div width="100%" align="center">
2
- <h1>
3
- <a href="https://github.com/chiefmikey/mikey-pro">
4
- <b>Mikey Pro</b>
5
- </a>
6
- </h1>
7
- </div>
1
+ # @mikey-pro/prettier-config
8
2
 
9
- ## **@mikey-pro/prettier-config**
3
+ Prettier configuration for the Mikey Pro style guide.
10
4
 
11
- A preset Prettier configuration
5
+ ## Installation
12
6
 
13
- ## Usage
7
+ ```bash
8
+ npm install @mikey-pro/prettier-config
9
+ ```
14
10
 
15
- ### Install
11
+ ## Usage
16
12
 
17
- ```shell
18
- npm i -D mikey-pro
13
+ ```javascript
14
+ // .prettierrc.js
15
+ module.exports = {
16
+ ...require('@mikey-pro/prettier-config'),
17
+ };
19
18
  ```
20
19
 
21
- ### Configure
22
-
23
- Reference shareable config in `package.json`:
20
+ Or in package.json:
24
21
 
25
22
  ```json
26
23
  {
@@ -28,4 +25,12 @@ Reference shareable config in `package.json`:
28
25
  }
29
26
  ```
30
27
 
31
- Prettier does not support an `extends` field; using the package string is the correct approach.
28
+ ## Features
29
+
30
+ - Consistent code formatting
31
+ - JavaScript/TypeScript optimization
32
+ - Framework-aware formatting
33
+ - Trailing commas and semicolons
34
+ - Single quotes preference
35
+
36
+ See [Mikey Pro](https://github.com/chiefmikey/mikey-pro) for full documentation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/prettier-config",
3
- "version": "9.0.1",
3
+ "version": "9.0.7",
4
4
  "description": "Mikey Pro Prettier configuration",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -34,7 +34,7 @@
34
34
  "author": "Mikl Wolfe <wolfe@mikl.io> (https://mikl.io)",
35
35
  "type": "module",
36
36
  "engines": {
37
- "node": ">=18.0.0",
37
+ "node": ">=20.0.0",
38
38
  "npm": ">=9.0.0"
39
39
  }
40
40
  }