@abinnovision/prettier-config 2.1.2 → 2.1.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.3](https://github.com/abinnovision/js-commons/compare/prettier-config-v2.1.2...prettier-config-v2.1.3) (2024-10-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * use spaces for markdown files ([#349](https://github.com/abinnovision/js-commons/issues/349)) ([eeb8b33](https://github.com/abinnovision/js-commons/commit/eeb8b335916602b55ca02cfdea352bc296fa7ffb))
9
+
3
10
  ## [2.1.2](https://github.com/abinnovision/js-commons/compare/prettier-config-v2.1.1...prettier-config-v2.1.2) (2024-10-10)
4
11
 
5
12
 
package/README.md CHANGED
@@ -12,9 +12,9 @@ yarn add --dev @abinnovision/prettier-config
12
12
 
13
13
  ## EditorConfig
14
14
 
15
- The EditorConfig is a small file in the root directory of your project
16
- called `.editorconfig`. It defines various code style options for the project.
17
- This packages comes with an opinionated version of this file.
15
+ The EditorConfig is a small file in the root directory of your project called
16
+ `.editorconfig`. It defines various code style options for the project. This
17
+ packages comes with an opinionated version of this file.
18
18
 
19
19
  To synchronize the `.editorconfig` file from this package use the following:
20
20
 
@@ -27,11 +27,11 @@ with the one defined in this project.
27
27
 
28
28
  ```json5
29
29
  {
30
- // ...
31
- scripts: {
32
- // ...
33
- postinstall: "sync-editorconfig",
34
- },
35
- // ...
30
+ // ...
31
+ scripts: {
32
+ // ...
33
+ postinstall: "sync-editorconfig",
34
+ },
35
+ // ...
36
36
  }
37
37
  ```
package/dist/index.js CHANGED
@@ -14,6 +14,18 @@ var config = {
14
14
  options: {
15
15
  requirePragma: true
16
16
  }
17
+ },
18
+ {
19
+ /**
20
+ * Use spaces for Markdown files instead of tabs.
21
+ *
22
+ * This is because Markdown files rendered with tabs in GitHub use pretty
23
+ * large indentation, which is not ideal.
24
+ */
25
+ files: ["*.md"],
26
+ options: {
27
+ useTabs: false
28
+ }
17
29
  }
18
30
  ]
19
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abinnovision/prettier-config",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "url": "https://github.com/abinnovision/js-commons"
@@ -38,16 +38,15 @@
38
38
  },
39
39
  "prettier": "./dist/index.js",
40
40
  "devDependencies": {
41
- "@types/node": "^20.11.30",
41
+ "@types/node": "^22.7.5",
42
42
  "@types/prettier": "^3.0.0",
43
- "eslint": "^9.9.1",
44
- "globals": "^15.10.0",
43
+ "eslint": "^9.12.0",
44
+ "globals": "^15.11.0",
45
45
  "prettier": "^3.3.3",
46
46
  "tsup": "^8.3.0",
47
- "typescript": "^5.6.2"
47
+ "typescript": "^5.6.3"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "prettier": "^2.4.0 || ^3.0.0"
51
- },
52
- "packageManager": "yarn@3.4.1"
51
+ }
53
52
  }