mirror of
https://github.com/jung-geun/NFD2NFC.git
synced 2026-06-21 12:25:14 +09:00
fix: typecheck/lint 오류 수정
tsconfig.json: module ESNext로 변경, renderer 제외. .eslintrc.cjs: varsIgnorePattern '^_' 추가. store.ts: notificationIntervalSecs 기본값(30) 추가. src/lib/index.ts: FilterOptions/ScanEntry를 올바른 소스 파일에서 import. scanner.ts: 미사용 fs import 제거. ipc.ts: 미사용 nanoid import 제거. cli/index.ts: 미사용 argv 변수 void 처리, showHelp() → 메시지 출력으로 대체. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,7 @@ describe('shouldNormalize', () => {
|
||||
|
||||
it('파일명에 한글 자모 확장-A 범위 코드포인트가 있으면 → true', () => {
|
||||
// U+A960 Hangul Jamo Extended-A
|
||||
const name = 'ꥠfile.txt'; // 확장-A 자모
|
||||
const _name = 'ꥠfile.txt'; // 확장-A 자모
|
||||
// 이 코드포인트는 단독으로 NFC와 다른 NFD를 만들지는 않지만 filter 범위 테스트
|
||||
// shouldNormalize는 먼저 NFC 동일성 체크를 하므로, NFC!=원본인 경우에만 범위 체크함
|
||||
// 따라서 실제로 NFD인 상황을 만들기 위해 함께 한글 자모를 섞어 줌
|
||||
|
||||
@@ -46,7 +46,7 @@ describe('normalizeEntry — file', () => {
|
||||
|
||||
it('라틴 악센트 NFD → skipped (한글 필터)', async () => {
|
||||
// e + combining acute accent (é in NFD)
|
||||
const nfdName = 'caféNFD.txt'; // 이미 NFC라 아래에서 직접 NFD로 만들기
|
||||
const _nfdName = 'caféNFD.txt'; // 이미 NFC라 아래에서 직접 NFD로 만들기
|
||||
// 실제 NFD 문자열: NFC e('e') + combining acute U+0301
|
||||
const nfdReal = 'café.txt';
|
||||
const filePath = path.join(tmpDir, nfdReal);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import fs, { Dirent } from 'fs';
|
||||
import { Dirent } from 'fs';
|
||||
import fsPromises from 'fs/promises';
|
||||
import path from 'path';
|
||||
import { shouldNormalize } from './filter';
|
||||
|
||||
Reference in New Issue
Block a user