@heejun/prettier-config 2.1.0 → 3.0.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 +5 -5
  2. package/index.js +14 -12
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { Config } from 'prettier';
1
+ import type { Config } from 'prettier'
2
2
 
3
- export declare const prettierConfig: Config;
4
- export declare const prettierConfigWithoutTailwind: Config;
3
+ export declare const prettierConfig: Config
4
+ export declare const prettierConfigWithTailwind: Config
5
5
 
6
- declare const _default: Config;
7
- export default _default;
6
+ declare const _default: Config
7
+ export default _default
package/index.js CHANGED
@@ -1,28 +1,30 @@
1
1
  /**
2
2
  * @heejun/prettier-config
3
- * 공유 Prettier 설정. Tailwind 클래스 정렬 플러그인을 포함한다.
4
- * Tailwind v4 프로젝트는 `tailwindStylesheet`로 CSS 진입점을 지정할있다.
3
+ * 형제 레포의 사실상 표준 Prettier 설정(no-semi, es5 trailing comma).
4
+ * 기본값은 플러그인 없이 기존 레포가 무변경(zero-churn)으로 채택할 있게 한다.
5
+ * Tailwind 클래스 정렬이 필요하면 `prettierConfigWithTailwind` 를 사용한다.
5
6
  * @type {import('prettier').Config}
6
7
  */
7
8
  export const prettierConfig = {
9
+ semi: false,
10
+ singleQuote: true,
11
+ trailingComma: 'es5',
8
12
  printWidth: 100,
9
- trailingComma: 'all',
10
13
  tabWidth: 2,
11
- semi: true,
12
- singleQuote: true,
13
14
  bracketSpacing: true,
14
15
  arrowParens: 'always',
15
16
  useTabs: false,
16
- plugins: ['prettier-plugin-tailwindcss'],
17
- };
17
+ endOfLine: 'lf',
18
+ }
18
19
 
19
20
  /**
20
- * Tailwind 플러그인 없는 Prettier 설정.
21
+ * Tailwind 클래스 정렬 플러그인을 포함한 설정(opt-in).
22
+ * Tailwind v4 프로젝트는 consumer 쪽에서 `tailwindStylesheet` 로 CSS 진입점을 지정할 수 있다.
21
23
  * @type {import('prettier').Config}
22
24
  */
23
- export const prettierConfigWithoutTailwind = {
25
+ export const prettierConfigWithTailwind = {
24
26
  ...prettierConfig,
25
- plugins: [],
26
- };
27
+ plugins: ['prettier-plugin-tailwindcss'],
28
+ }
27
29
 
28
- export default prettierConfig;
30
+ export default prettierConfig
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heejun/prettier-config",
3
- "version": "2.1.0",
4
- "description": "공유 Prettier 설정 프리셋 (Tailwind 클래스 정렬 포함)",
3
+ "version": "3.0.0",
4
+ "description": "공유 Prettier 설정 프리셋 (no-semi/es5; Tailwind 정렬은 opt-in)",
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "types": "./index.d.ts",