@zilero/prettier 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.prettierrc.js +13 -0
- package/LICENSE +21 -0
- package/README.md +100 -0
- package/index.js +3 -0
- package/package.json +64 -0
package/.prettierrc.js
ADDED
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 Aleksandr
|
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/README.md
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
# 🎯 @zilero/prettier
|
2
|
+
|
3
|
+
<p align="center">
|
4
|
+
<a href="https://github.com/Zilero232/dev-config-hub">
|
5
|
+
<img src="https://img.shields.io/github/actions/workflow/status/Zilero232/dev-config-hub/integrate.yaml?label=CI&logo=GitHub" alt="CI status">
|
6
|
+
</a>
|
7
|
+
<a href="https://www.npmjs.com/package/@zilero/prettier">
|
8
|
+
<img src="https://img.shields.io/npm/dm/@zilero/prettier?logo=NPM" alt="npm downloads">
|
9
|
+
</a>
|
10
|
+
<a href="https://github.com/Zilero232/cli">
|
11
|
+
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="npm license">
|
12
|
+
</a>
|
13
|
+
<a href="https://github.com/Zilero232/dev-config-hub/tree/main/tools/prettier">
|
14
|
+
<img src="https://img.shields.io/npm/v/@zilero/prettier?label=version" alt="version">
|
15
|
+
</a>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
> ✨ Opinionated Prettier configuration for consistent code formatting
|
19
|
+
|
20
|
+
## ✨ Features
|
21
|
+
|
22
|
+
- 📦 Zero-config setup
|
23
|
+
- 🎯 Optimized for modern JavaScript/TypeScript
|
24
|
+
- 🔧 Consistent code style across projects
|
25
|
+
- 🚀 Support for React/JSX
|
26
|
+
- 💪 TypeScript-friendly
|
27
|
+
- 📱 Next.js compatible
|
28
|
+
- 🎭 Markdown support
|
29
|
+
|
30
|
+
## 📥 Installation
|
31
|
+
|
32
|
+
### Using npm
|
33
|
+
|
34
|
+
```bash
|
35
|
+
npm install --save-dev @zilero/prettier
|
36
|
+
```
|
37
|
+
### Using yarn
|
38
|
+
|
39
|
+
```bash
|
40
|
+
yarn add -D @zilero/prettier
|
41
|
+
```
|
42
|
+
|
43
|
+
### Using pnpm
|
44
|
+
|
45
|
+
```bash
|
46
|
+
pnpm install -D @zilero/prettier
|
47
|
+
```
|
48
|
+
|
49
|
+
## 🚀 Quick start
|
50
|
+
|
51
|
+
Create the `.prettier.js` at the root of your project:
|
52
|
+
|
53
|
+
```javascript
|
54
|
+
import { prettier } from '@zilero/prettier';
|
55
|
+
|
56
|
+
module.exports = prettier;
|
57
|
+
```
|
58
|
+
|
59
|
+
## 🤝 Contributing
|
60
|
+
|
61
|
+
We'd love for you to contribute to `@zilero/prettier`! Whether it's reporting bugs, suggesting features, or submitting pull requests, your help is always appreciated.
|
62
|
+
|
63
|
+
### How to contribute:
|
64
|
+
|
65
|
+
1. Fork the repository.
|
66
|
+
2. Create a new branch (`git checkout -b feature/your-feature`).
|
67
|
+
3. Make your changes.
|
68
|
+
4. Commit your changes (`git commit -am 'Add new feature'`).
|
69
|
+
5. Push to the branch (`git push origin feature/your-feature`).
|
70
|
+
6. Open a pull request.
|
71
|
+
|
72
|
+
## 📜 Code of Conduct
|
73
|
+
|
74
|
+
Please follow our [Code of Conduct](CODE_OF_CONDUCT.md) when participating in this project to ensure a welcoming and productive atmosphere.
|
75
|
+
|
76
|
+
## 🔒 Security Policy
|
77
|
+
|
78
|
+
Security is our priority. If you encounter any issues, please read our full [Security Policy](SECURITY.md) to report vulnerabilities safely and responsibly.
|
79
|
+
|
80
|
+
## 👥 Team
|
81
|
+
|
82
|
+
These folks keep the project moving and are resources for help.
|
83
|
+
|
84
|
+
<table>
|
85
|
+
<tbody>
|
86
|
+
<tr>
|
87
|
+
<td align="center" valign="top" width="11%">
|
88
|
+
<a href="https://career.habr.com/zilero">
|
89
|
+
<img src="https://avatars.githubusercontent.com/u/68345676?s=400&u=eb7df22c29a8aca48def78ec54a7526601c9fd8f&v=4" width="100" height="100" alt="Artemev Alexandr - Avatar">
|
90
|
+
<br />
|
91
|
+
Artemev A. A.
|
92
|
+
</a>
|
93
|
+
</td>
|
94
|
+
</tr>
|
95
|
+
</tbody>
|
96
|
+
</table>
|
97
|
+
|
98
|
+
## 📄 License
|
99
|
+
|
100
|
+
License `@zilero/prettier` is licensed under the [MIT License](LICENSE).
|
package/index.js
ADDED
package/package.json
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
{
|
2
|
+
"name": "@zilero/prettier",
|
3
|
+
"icon": "🎨",
|
4
|
+
"displayName": "✨ Zilero Prettier Config",
|
5
|
+
"description": "Prettier configuration preset",
|
6
|
+
"license": "MIT",
|
7
|
+
"version": "1.0.0",
|
8
|
+
"keywords": [
|
9
|
+
"prettier",
|
10
|
+
"prettier-config",
|
11
|
+
"formatter",
|
12
|
+
"code-style",
|
13
|
+
"coding-style",
|
14
|
+
"typescript",
|
15
|
+
"javascript",
|
16
|
+
"react",
|
17
|
+
"jsx",
|
18
|
+
"formatting"
|
19
|
+
],
|
20
|
+
"engines": {
|
21
|
+
"node": ">=18.0.0",
|
22
|
+
"npm": ">=8.0.0"
|
23
|
+
},
|
24
|
+
"author": {
|
25
|
+
"name": "Artemev Alexandr",
|
26
|
+
"url": "https://github.com/Zilero232",
|
27
|
+
"email": "sasha.artemev.1002@mail.ru"
|
28
|
+
},
|
29
|
+
"bugs": {
|
30
|
+
"url": "https://github.com/Zilero232/dev-config-hub/issues"
|
31
|
+
},
|
32
|
+
"homepage": "https://github.com/Zilero232/dev-config-hub",
|
33
|
+
"repository": {
|
34
|
+
"url": "https://github.com/Zilero232/dev-config-hub"
|
35
|
+
},
|
36
|
+
"publishConfig": {
|
37
|
+
"access": "public"
|
38
|
+
},
|
39
|
+
"files": [
|
40
|
+
".prettierrc.js",
|
41
|
+
"index.js"
|
42
|
+
],
|
43
|
+
"main": "index.js",
|
44
|
+
"funding": {
|
45
|
+
"type": "github",
|
46
|
+
"url": "https://github.com/sponsors/Zilero232"
|
47
|
+
},
|
48
|
+
"categories": [
|
49
|
+
"Formatters"
|
50
|
+
],
|
51
|
+
"peerDependencies": {
|
52
|
+
"prettier": "^3.3.2"
|
53
|
+
},
|
54
|
+
"dependencies": {
|
55
|
+
"prettier": "^3.3.2"
|
56
|
+
},
|
57
|
+
"scripts": {
|
58
|
+
"format": "prettier --write .",
|
59
|
+
"format:check": "prettier --check .",
|
60
|
+
"format:watch": "onchange '**/*' -- prettier --write {{changed}}",
|
61
|
+
"format:staged": "pretty-quick --staged",
|
62
|
+
"format:ci": "prettier --check '**/*.{js,jsx,ts,tsx,json,md}'"
|
63
|
+
}
|
64
|
+
}
|