@heejun/prettier-config 2.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.
Files changed (3) hide show
  1. package/index.d.ts +7 -0
  2. package/index.js +28 -0
  3. package/package.json +31 -0
package/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import type { Config } from 'prettier';
2
+
3
+ export declare const prettierConfig: Config;
4
+ export declare const prettierConfigWithoutTailwind: Config;
5
+
6
+ declare const _default: Config;
7
+ export default _default;
package/index.js ADDED
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @heejun/prettier-config
3
+ * 공유 Prettier 설정. Tailwind 클래스 정렬 플러그인을 포함한다.
4
+ * Tailwind v4 프로젝트는 `tailwindStylesheet`로 CSS 진입점을 지정할 수 있다.
5
+ * @type {import('prettier').Config}
6
+ */
7
+ export const prettierConfig = {
8
+ printWidth: 100,
9
+ trailingComma: 'all',
10
+ tabWidth: 2,
11
+ semi: true,
12
+ singleQuote: true,
13
+ bracketSpacing: true,
14
+ arrowParens: 'always',
15
+ useTabs: false,
16
+ plugins: ['prettier-plugin-tailwindcss'],
17
+ };
18
+
19
+ /**
20
+ * Tailwind 플러그인 없는 Prettier 설정.
21
+ * @type {import('prettier').Config}
22
+ */
23
+ export const prettierConfigWithoutTailwind = {
24
+ ...prettierConfig,
25
+ plugins: [],
26
+ };
27
+
28
+ export default prettierConfig;
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@heejun/prettier-config",
3
+ "version": "2.1.0",
4
+ "description": "공유 Prettier 설정 프리셋 (Tailwind 클래스 정렬 포함)",
5
+ "type": "module",
6
+ "main": "./index.js",
7
+ "types": "./index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "default": "./index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "index.js",
16
+ "index.d.ts"
17
+ ],
18
+ "license": "MIT",
19
+ "peerDependencies": {
20
+ "prettier": ">=3.4",
21
+ "prettier-plugin-tailwindcss": ">=0.6"
22
+ },
23
+ "peerDependenciesMeta": {
24
+ "prettier-plugin-tailwindcss": {
25
+ "optional": true
26
+ }
27
+ },
28
+ "engines": {
29
+ "node": ">=22"
30
+ }
31
+ }