@foray1010/prettier-config 12.0.0 → 12.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/CHANGELOG.md +11 -0
- package/index.mjs +13 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [12.1.0](https://github.com/foray1010/common-presets/compare/@foray1010/prettier-config@12.0.0...@foray1010/prettier-config@12.1.0) (2026-01-25)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **prettier-config:** format AI editor rules files ([b96205a](https://github.com/foray1010/common-presets/commit/b96205a1ccd4539b995d8d1d8426602155bb5d8d))
|
|
11
|
+
- **prettier-config:** use 4 spaces for markdown indentation ([01edd7b](https://github.com/foray1010/common-presets/commit/01edd7be10b7211e546be94751318daa6a72fbc3))
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- **deps:** update prettier-plugin-packagejson to v3 ([8f85f37](https://github.com/foray1010/common-presets/commit/8f85f37f9d7fdc1ff012eeabd4f3ffed8a93b4ad))
|
|
16
|
+
|
|
6
17
|
## [12.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/prettier-config@11.0.1...@foray1010/prettier-config@12.0.0) (2025-10-31)
|
|
7
18
|
|
|
8
19
|
### ⚠ BREAKING CHANGES
|
package/index.mjs
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/** @type {import('prettier').Options} */
|
|
2
|
+
const markdownOptions = {
|
|
3
|
+
// Many markdown parsers does not support using 2 spaces for indentation. Prettier will use 3 spaces for indentation if tabWidth is 2.
|
|
4
|
+
tabWidth: 4,
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
/** @type {import('prettier').Config} */
|
|
2
8
|
const config = {
|
|
3
9
|
plugins: ['prettier-plugin-packagejson'],
|
|
@@ -18,9 +24,14 @@ const config = {
|
|
|
18
24
|
overrides: [
|
|
19
25
|
{
|
|
20
26
|
files: ['*.md'],
|
|
27
|
+
options: markdownOptions,
|
|
28
|
+
},
|
|
29
|
+
// Format AI editor rules files (like .cursorrules, .windsurfrules, .clinerules) as Markdown
|
|
30
|
+
{
|
|
31
|
+
files: '.*rules',
|
|
21
32
|
options: {
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
parser: 'markdown',
|
|
34
|
+
...markdownOptions,
|
|
24
35
|
},
|
|
25
36
|
},
|
|
26
37
|
],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@foray1010/prettier-config",
|
|
4
|
-
"version": "12.
|
|
4
|
+
"version": "12.1.0",
|
|
5
5
|
"homepage": "https://github.com/foray1010/common-presets/tree/master/packages/prettier-config#readme",
|
|
6
6
|
"bugs": "https://github.com/foray1010/common-presets/issues",
|
|
7
7
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"type:check": "tsc"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"prettier-plugin-packagejson": "^
|
|
23
|
+
"prettier-plugin-packagejson": "^3.0.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/prettier": "3.0.0"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "2d088979d3667b7dc9f2d801169f09e9f893c5b3"
|
|
38
38
|
}
|