@homestuck/prettier-config 1.7.0 → 1.7.2
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 +14 -0
- package/index.js +12 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.7.2](https://github.com/homestuck/configs/compare/prettier-config@v1.7.1...prettier-config@v1.7.2) (2026-01-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **prettier:** Add tailwindFunctions config ([#65](https://github.com/homestuck/configs/issues/65)) ([2a712c1](https://github.com/homestuck/configs/commit/2a712c1abb34c6684ce4b96e02ed7ede7a610768))
|
|
9
|
+
|
|
10
|
+
## [1.7.1](https://github.com/homestuck/configs/compare/prettier-config@v1.7.0...prettier-config@v1.7.1) (2026-01-29)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **prettier:** Updating type imports and typedefs ([#63](https://github.com/homestuck/configs/issues/63)) ([42199ea](https://github.com/homestuck/configs/commit/42199eaf442043ea7f23ac806a73bdb88c1b0853))
|
|
16
|
+
|
|
3
17
|
## [1.7.0](https://github.com/homestuck/configs/compare/prettier-config@v1.6.0...prettier-config@v1.7.0) (2026-01-28)
|
|
4
18
|
|
|
5
19
|
|
package/index.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @import { Config as PrettierConfig } from "prettier"
|
|
3
|
+
* @import { PluginConfig as SortImportsConfig } from "@ianvs/prettier-plugin-sort-imports"
|
|
4
|
+
* @import { SortJsonOptions as SortJsonConfig } from "prettier-plugin-sort-json"
|
|
5
|
+
* @import { PluginOptions as TailwindCSSConfig } from "prettier-plugin-tailwindcss"
|
|
6
|
+
* @typedef { PrettierConfig & SortImportsConfig & SortJsonConfig & TailwindCSSConfig } HomestuckPrettierConfig
|
|
7
|
+
* */
|
|
8
|
+
|
|
9
|
+
/** @type HomestuckPrettierConfig */
|
|
10
|
+
export default {
|
|
3
11
|
arrowParens: 'always',
|
|
4
12
|
bracketSameLine: true,
|
|
5
13
|
bracketSpacing: true,
|
|
@@ -40,6 +48,8 @@ const config = {
|
|
|
40
48
|
semi: false,
|
|
41
49
|
singleQuote: true,
|
|
42
50
|
tabWidth: 2,
|
|
51
|
+
tailwindAttributes: ['class', 'className', 'ngClass', 'class:list'],
|
|
52
|
+
tailwindFunctions: ['clsx', 'cn', 'cva', 'tw', 'twMerge'],
|
|
43
53
|
trailingComma: 'all',
|
|
44
54
|
useTabs: false,
|
|
45
55
|
xmlQuoteAttributes: 'double',
|
|
@@ -47,5 +57,3 @@ const config = {
|
|
|
47
57
|
xmlSortAttributesByKey: true,
|
|
48
58
|
xmlWhitespaceSensitivity: 'preserve',
|
|
49
59
|
}
|
|
50
|
-
|
|
51
|
-
export default config
|