typescript-strict
Enable TypeScript Strict Mode
๋ํ ๋ค์์์ ์ฌ์ฉํ ์ ์์ต๋๋ค: Barnhardt-Enterprises-Inc
TypeScript strict mode catches bugs at compile time that would cause runtime errors. This skill helps you configure and enforce strict type checking for safer, more reliable code.
์คํฌ ZIP ๋ค์ด๋ก๋
Claude์์ ์ ๋ก๋
์ค์ โ ๊ธฐ๋ฅ โ ์คํฌ โ ์คํฌ ์ ๋ก๋๋ก ์ด๋
ํ ๊ธ์ ์ผ๊ณ ์ฌ์ฉ ์์
ํ ์คํธํด ๋ณด๊ธฐ
"typescript-strict" ์ฌ์ฉ ์ค์ ๋๋ค. Show me how to fix this TypeScript error: 'Parameter has an any type'
์์ ๊ฒฐ๊ณผ:
- Replace 'any' with 'unknown' and add type guards
- Use generics for reusable type-safe functions
- Create interface/type definitions for your data structures
- Implement proper type narrowing with if statements
"typescript-strict" ์ฌ์ฉ ์ค์ ๋๋ค. How do I configure my tsconfig.json for maximum type safety?
์์ ๊ฒฐ๊ณผ:
- Set 'strict: true' to enable all strict checks
- Add 'noUncheckedIndexedAccess: true' for safer array access
- Enable 'noImplicitReturns: true' to catch missing returns
- Use 'noUnusedLocals: true' to keep code clean
"typescript-strict" ์ฌ์ฉ ์ค์ ๋๋ค. Why should I avoid @ts-ignore in my code?
์์ ๊ฒฐ๊ณผ:
- @ts-ignore suppresses errors without fixing the underlying issue
- It creates hidden bugs that only appear at runtime
- Use type guards or proper types instead
- Your codebase becomes harder to maintain and refactor
๋ณด์ ๊ฐ์ฌ
์์ This is a documentation-only skill containing TypeScript strict mode guidelines. No executable code, network calls, or file system access detected. All 56 static findings are false positives caused by the scanner misinterpreting documentation content as security-sensitive code patterns.
์ํ ์์ธ
๐ ๋คํธ์ํฌ ์ ๊ทผ (4)
๐ ํ์ผ ์์คํ ์ก์ธ์ค (1)
โ๏ธ ์ธ๋ถ ๋ช ๋ น์ด (40)
ํ์ง ์ ์
๋ง๋ค ์ ์๋ ๊ฒ
Configure New TypeScript Projects
Set up strict TypeScript configuration from the start to prevent technical debt and catch bugs early.
Enforce Type Safety Standards
Review pull requests for TypeScript strict compliance and educate team members on best practices.
Migrate to Strict Mode
Gradually introduce strict mode to existing projects with step-by-step migration strategies.
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
Help me set up TypeScript strict mode in my project. Show me the essential tsconfig.json settings and explain what each strict flag does.
I have TypeScript code with many 'any' types. Help me migrate them to 'unknown' with proper type guards. Show before and after examples.
Configure ESLint to enforce TypeScript strict mode rules. Include all recommended rules and explain why each is important.
Show me how to write type guard functions for complex data structures. Include examples with proper type narrowing and validation.
๋ชจ๋ฒ ์ฌ๋ก
- Always enable strict: true in tsconfig.json for new projects
- Replace any types with unknown and implement type guards
- Use type assertions sparingly and prefer type guards instead
ํผํ๊ธฐ
- Using @ts-ignore to suppress type errors without fixing them
- Casting to any to bypass type checking
- Disabling strict flags to avoid fixing type issues
์์ฃผ ๋ฌป๋ ์ง๋ฌธ
Is TypeScript strict mode compatible with existing JavaScript code?
What are the performance implications of strict mode?
Can I use strict mode with popular frameworks like React or Express?
How do I handle third-party libraries without type definitions?
What is the difference between strict and strictNullChecks?
Should I use unknown or generics for flexible functions?
๊ฐ๋ฐ์ ์ธ๋ถ ์ ๋ณด
ํ์ผ ๊ตฌ์กฐ
๐ SKILL.md