@mikey-pro/prettier-config 10.0.4 → 10.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.
- package/README.md +14 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,36 +1,32 @@
|
|
|
1
1
|
# @mikey-pro/prettier-config
|
|
2
2
|
|
|
3
|
-
Prettier configuration for
|
|
3
|
+
Prettier configuration for consistent code formatting.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Recommended:** Install `mikey-pro` instead — includes this config plus ESLint and Stylelint:
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install --save-dev mikey-pro
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
```javascript
|
|
14
|
-
// .prettierrc.js
|
|
15
|
-
module.exports = {
|
|
16
|
-
...require('@mikey-pro/prettier-config'),
|
|
17
|
-
};
|
|
11
|
+
```json
|
|
12
|
+
{ "prettier": "mikey-pro/prettier" }
|
|
18
13
|
```
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
## Standalone Install
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install --save-dev @mikey-pro/prettier-config
|
|
19
|
+
```
|
|
21
20
|
|
|
22
21
|
```json
|
|
23
|
-
{
|
|
24
|
-
"prettier": "@mikey-pro/prettier-config"
|
|
25
|
-
}
|
|
22
|
+
{ "prettier": "@mikey-pro/prettier-config" }
|
|
26
23
|
```
|
|
27
24
|
|
|
28
25
|
## Features
|
|
29
26
|
|
|
30
|
-
-
|
|
31
|
-
-
|
|
27
|
+
- Single quotes, trailing commas, semicolons
|
|
28
|
+
- 80 character print width
|
|
32
29
|
- Framework-aware formatting
|
|
33
|
-
-
|
|
34
|
-
- Single quotes preference
|
|
30
|
+
- JS, TS, JSON, CSS, HTML, Markdown, YAML support
|
|
35
31
|
|
|
36
32
|
See [Mikey Pro](https://github.com/chiefmikey/mikey-pro) for full documentation.
|