@homestuck/prettier-config 1.0.1 → 1.2.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 CHANGED
@@ -1,22 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ## [1.0.1](https://github.com/homestuck/configs/compare/prettier-config@v1.0.0...prettier-config@v1.0.1) (2025-12-09)
4
-
5
-
6
- ### Miscellaneous Chores
7
-
8
- * release 1.0.0 ([ab6be7b](https://github.com/homestuck/configs/commit/ab6be7b5a3352d5ed80f10731e022e0f18baece1))
9
- * release 1.0.1 ([2a8c007](https://github.com/homestuck/configs/commit/2a8c007af9a26ef1bbe9b97c94ece6676262a07b))
10
-
11
- ## [1.0.0](https://github.com/homestuck/configs/compare/prettier-config@v1.0.0...prettier-config@v1.0.0) (2025-12-09)
3
+ ## [1.2.0](https://github.com/homestuck/configs/compare/prettier-config@v1.1.0...prettier-config@v1.2.0) (2025-12-15)
12
4
 
13
5
 
14
- ### Miscellaneous Chores
6
+ ### Features
15
7
 
16
- * release 1.0.0 ([ab6be7b](https://github.com/homestuck/configs/commit/ab6be7b5a3352d5ed80f10731e022e0f18baece1))
8
+ * **prettier:** export Prettier config as ESM instead of CJS ([#9](https://github.com/homestuck/configs/issues/9)) ([2a3e964](https://github.com/homestuck/configs/commit/2a3e9644b1794b2aeaf22e3bbaa07f7a4a6ebd0b))
17
9
 
18
- ## [1.0.0](https://github.com/homestuck/configs/compare/prettier-config@v1.0.0-alpha.3...prettier-config@v1.0.0) (2025-12-09)
10
+ ## [1.1.0](https://github.com/homestuck/configs/compare/prettier-config@v1.0.1...prettier-config@v1.1.0) (2025-12-11)
19
11
 
20
- ### Miscellaneous Chores
12
+ ## [1.0.1](https://github.com/homestuck/configs/compare/prettier-config@v1.0.0...prettier-config@v1.0.1) (2025-12-09)
21
13
 
22
- - release 1.0.0 ([291b20c](https://github.com/homestuck/configs/commit/291b20c3b1f9f95ed1e9e3e01ae405d0cc9e692d))
14
+ ## [1.0.0](https://github.com/homestuck/configs/compare/prettier-config@v1.0.0...prettier-config@v1.0.0) (2025-12-09)
@@ -3,7 +3,7 @@
3
3
  /** @typedef {import("@prettier/plugin-xml")} XMLConfig */
4
4
 
5
5
  /** @type { PrettierConfig | SortImportsConfig | XMLConfig } */
6
- module.exports = {
6
+ const config = {
7
7
  arrowParens: 'always',
8
8
  bracketSameLine: true,
9
9
  bracketSpacing: true,
@@ -18,7 +18,7 @@ module.exports = {
18
18
  '^@homestuck/(.*)$',
19
19
  '',
20
20
  '<TYPES>^#',
21
- '^#/(.*)$',
21
+ '^(#/(.*)$)|^(#(.*)$)',
22
22
  '',
23
23
  '<TYPES>^[.|..|~]',
24
24
  '^~/',
@@ -30,11 +30,11 @@ module.exports = {
30
30
  importOrderTypeScriptVersion: '5.9.3',
31
31
  jsonRecursiveSort: true,
32
32
  plugins: [
33
- require.resolve('@ianvs/prettier-plugin-sort-imports'),
34
- require.resolve('@prettier/plugin-xml'),
35
- require.resolve('prettier-plugin-packagejson'),
36
- require.resolve('prettier-plugin-sort-json'),
37
- require.resolve('prettier-plugin-tailwindcss'),
33
+ '@ianvs/prettier-plugin-sort-imports',
34
+ '@prettier/plugin-xml',
35
+ 'prettier-plugin-packagejson',
36
+ 'prettier-plugin-sort-json',
37
+ 'prettier-plugin-tailwindcss',
38
38
  ],
39
39
  printWidth: 80,
40
40
  proseWrap: 'preserve',
@@ -43,9 +43,10 @@ module.exports = {
43
43
  tabWidth: 2,
44
44
  trailingComma: 'all',
45
45
  useTabs: false,
46
- tailwindFunctions: ['classNames', 'clsx', 'cn', 'cva', 'tv', 'tw', 'twMerge'],
46
+ xmlQuoteAttributes: 'double',
47
47
  xmlSelfClosingSpace: true,
48
48
  xmlSortAttributesByKey: true,
49
- xmlQuoteAttributes: 'double',
50
49
  xmlWhitespaceSensitivity: 'preserve',
51
50
  }
51
+
52
+ export default config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homestuck/prettier-config",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
5
  "description": "Baseline Prettier config used and maintained by Homestuck Inc., et al.",
6
6
  "repository": {
@@ -10,10 +10,11 @@
10
10
  },
11
11
  "license": "MIT",
12
12
  "author": "Homestuck <support@homestuck.com> (https://homestuck.com)",
13
- "type": "commonjs",
13
+ "type": "module",
14
14
  "exports": {
15
- ".": "./index.js"
15
+ ".": "./index.mjs"
16
16
  },
17
+ "main": "./index.mjs",
17
18
  "prettier": "@homestuck/prettier-config",
18
19
  "dependencies": {
19
20
  "@ianvs/prettier-plugin-sort-imports": "4.7.0",
@@ -24,9 +25,9 @@
24
25
  "prettier-plugin-tailwindcss": "0.7.2"
25
26
  },
26
27
  "devDependencies": {
27
- "@types/node": "24.10.1",
28
+ "@types/node": "24.10.4",
28
29
  "typescript": "5.9.3",
29
- "@homestuck/tsconfig": "1.0.1"
30
+ "@homestuck/tsconfig": "1.1.0"
30
31
  },
31
32
  "scripts": {
32
33
  "clean": "rm -rf .turbo node_modules",
package/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "baseUrl": ".",
4
4
  "paths": {
5
- "@homestuck/prettier-config": ["index.js"]
5
+ "@homestuck/prettier-config": ["index.mjs"]
6
6
  },
7
7
  "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
8
8
  },