Skip to content

Instantly share code, notes, and snippets.

View hyf0's full-sized avatar
🧙‍♂️
Spelling

Yunfei He hyf0

🧙‍♂️
Spelling
View GitHub Profile
name description
vue-tsc-compiler-options
Configures Vue 3 template type checking via vueCompilerOptions in tsconfig.app.json. Covers strictTemplates, checkUnknownComponents, checkUnknownProps, checkUnknownEvents, and checkUnknownDirectives. Use when setting up vue-tsc, diagnosing unknown component errors, or enabling strict template validation.

Vue Compiler Options for Type Checking

Which tsconfig?

Add vueCompilerOptions to the tsconfig that includes Vue source files. In projects with multiple tsconfigs, this is typically tsconfig.app.json, not the root tsconfig.json or tsconfig.node.json.

@hyf0
hyf0 / SKILL.md
Created November 12, 2025 06:12
ast-grep-search
name description allowed-tools
ast-grep-search
Syntax-aware code searching that understands code structure rather than just text patterns. Always prefer ast-grep than grep for code searches.
Read, Grep, Bash(ast-grep:*), Bash(sg:*)

ast-grep: Structural Code Search

ast-grep allows searching code based on its Abstract Syntax Tree (AST), enabling syntax-aware pattern matching. It is ideal for finding function calls, method invocations, variable declarations, and other code structures while respecting language syntax.