@leancodepl/prettier-config 8.4.0 → 8.5.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.
Files changed (2) hide show
  1. package/README.md +28 -6
  2. package/package.json +31 -2
package/README.md CHANGED
@@ -1,11 +1,33 @@
1
- # prettier-config
1
+ # @leancodepl/prettier-config
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ Prettier configuration for code formatting.
4
4
 
5
- ## Building
5
+ ## Installation
6
6
 
7
- Run `nx build prettier-config` to build the library.
7
+ ```bash
8
+ npm install --save-dev @leancodepl/prettier-config
9
+ # or
10
+ yarn add --dev @leancodepl/prettier-config
11
+ ```
8
12
 
9
- ## Running unit tests
13
+ ## Usage Examples
10
14
 
11
- Run `nx test prettier-config` to execute the unit tests via [Jest](https://jestjs.io).
15
+ ### Basic Setup
16
+
17
+ ```javascript
18
+ // prettier.config.js
19
+ module.exports = require('@leancodepl/prettier-config');
20
+ ```
21
+
22
+ ### With Overrides
23
+
24
+ ```javascript
25
+ // prettier.config.js
26
+ const baseConfig = require('@leancodepl/prettier-config');
27
+
28
+ module.exports = {
29
+ ...baseConfig,
30
+ printWidth: 100,
31
+ singleQuote: true,
32
+ };
33
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/prettier-config",
3
- "version": "8.4.0",
3
+ "version": "8.5.0",
4
4
  "license": "Apache-2.0",
5
5
  "dependencies": {
6
6
  "prettier": ">=3.0.0"
@@ -11,5 +11,34 @@
11
11
  ],
12
12
  "directories": {
13
13
  "src": "src"
14
- }
14
+ },
15
+ "publishConfig": {
16
+ "access": "public",
17
+ "registry": "https://registry.npmjs.org/"
18
+ },
19
+ "engines": {
20
+ "node": ">=18.0.0"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/leancodepl/js_corelibrary.git",
25
+ "directory": "packages/linters/prettier-config"
26
+ },
27
+ "homepage": "https://github.com/leancodepl/js_corelibrary",
28
+ "bugs": {
29
+ "url": "https://github.com/leancodepl/js_corelibrary/issues"
30
+ },
31
+ "description": "Prettier configuration for consistent code formatting",
32
+ "keywords": [
33
+ "prettier",
34
+ "formatting",
35
+ "javascript",
36
+ "typescript",
37
+ "leancode"
38
+ ],
39
+ "author": {
40
+ "name": "LeanCode",
41
+ "url": "https://leancode.co"
42
+ },
43
+ "sideEffects": false
15
44
  }