create-harness-cli 0.2.0 → 0.2.1

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/dist/registry.js CHANGED
@@ -338,7 +338,11 @@ export const requiredDevDeps = (options) => {
338
338
  deps.push('stylelint', 'stylelint-declaration-strict-value');
339
339
  }
340
340
  if (options.modules.includes('lint')) {
341
- deps.push('eslint-plugin-import', '@commitlint/cli', '@commitlint/config-conventional', 'prettier');
341
+ deps.push(
342
+ // eslint.harness.config.js 가 직접 import한다 — 추천 경로(기존 flat config
343
+ // 존재)에서는 이미 있을 확률이 높지만, --modules 로 강제 포함한 경우
344
+ // 실제로 없는 걸 실사용에서 확인했다 (예: 최신 Vite 템플릿은 oxlint 기본)
345
+ 'eslint', 'typescript-eslint', 'eslint-plugin-import', '@commitlint/cli', '@commitlint/config-conventional', 'prettier');
342
346
  }
343
347
  if (options.modules.includes('data-fetching')) {
344
348
  deps.push('@tanstack/react-query', 'zustand');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-harness-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Scaffold AI coding agent harness (conventions, verification gates, workflows) onto an existing project — for Cursor and Claude Code.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -67,6 +67,13 @@ export default [
67
67
  format: ['PascalCase', 'camelCase'],
68
68
  prefix: ['is', 'has', 'should', 'can', 'must', 'was', 'will'],
69
69
  },
70
+ // 화살표 함수 컴포넌트(const Button = () => ...)는 PascalCase 변수다 —
71
+ // 이 예외가 없으면 표준 React 컴포넌트 선언 방식 자체가 위반으로 잡힌다
72
+ {
73
+ selector: 'variable',
74
+ types: ['function'],
75
+ format: ['PascalCase', 'camelCase'],
76
+ },
70
77
  {
71
78
  selector: 'variable',
72
79
  format: ['camelCase'],