TypeScript coding style enforcement (ESLint, type safety, React patterns). Auto-loads when writing or reviewing TypeScript/JavaScript code.
From frontend-expertsnpx claudepluginhub jpoutrin/product-forge --plugin frontend-expertsThis skill uses the workspace's default tool permissions.
This skill enforces TypeScript strict mode, ESLint standards, and modern patterns for frontend development.
any: Use unknown or proper types// Types/Interfaces: PascalCase
interface UserProfile { }
// Functions/variables: camelCase
function calculateTotal() { }
const userName = "john";
// Booleans: is/has/can/should prefix
const isLoading = true;
const hasPermission = false;
// Prefer union types over enums
type Status = "pending" | "active" | "completed";
// Use as const for constant objects
const HttpStatus = {
Ok: 200,
NotFound: 404,
} as const;
// Discriminated unions
type Result<T> =
| { success: true; data: T }
| { success: false; error: Error };
// Typed props
interface ButtonProps {
label: string;
onClick: () => void;
disabled?: boolean;
}
// Typed hooks
const [isOpen, setIsOpen] = useState(false);
// Typed event handlers
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {};
any type== instead of ===