/quality-tools:typescript-code-review-and-lintingfrom quality-tools
ESLint configuration, TypeScript type safety rules, and React-specific linting patterns. PROACTIVELY activate for: (1) Setting up ESLint for TypeScript, (2) Fixing type safety issues, (3) React-specific linting rules, (4) Resolving TypeScript compiler errors, (5) Code review for anti-patterns. Triggers: "eslint", "typescript", "type checking", "refactor", "ts review", "no-explicit-any", "ts-ignore"
Ships in quality-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Keywords: eslint, typescript, type checking, refactor, ts review
File Patterns: *.ts, *.tsx, *.js, *.jsx
Modes: code_review
// eslint.config.js
import tseslint from '@typescript-eslint/eslint-plugin';
export default [
{
plugins: { '@typescript-eslint': tseslint },
rules: {
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'no-console': 'warn',
}
}
];
@typescript-eslint/no-explicit-any
// Defeats TypeScript
function process(data: any): any {
return data.value;
}
// Use proper types
interface Data {
value: string;
}
function process(data: Data): string {
return data.value;
}
@typescript-eslint/no-unsafe-assignment
// Unsafe
const value: string = getData(); // getData returns 'any'
// Type assertion or guard
const value = getData() as string;
// Or
if (typeof getData() === 'string') {
const value: string = getData();
}
react/no-array-index-key
// Causes rendering bugs
{items.map((item, index) => (
<div key={index}>{item.name}</div>
))}
// Use unique ID
{items.map(item => (
<div key={item.id}>{item.name}</div>
))}
react/no-danger
// XSS risk
<div dangerouslySetInnerHTML={{__html: userInput}} />
// Sanitize or use markdown
import DOMPurify from 'dompurify';
<div dangerouslySetInnerHTML={{__html: DOMPurify.sanitize(userInput)}} />
// TS2339: Property 'name' does not exist on type '{}'
const user = {};
console.log(user.name); // Error
// Fix: Define interface
interface User {
name: string;
}
const user: User = { name: "Alice" };
any typeWhat SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/advanced-js-mocking-patternsAdvanced mocking patterns for Jest and Vitest including module mocking, spies, and fake timers. PROACTIVELY activate for: (1) Module mocking, (2) Partial mocking with spies, (3) Mock lifecycle management, (4) Fake timers for time-dependent code, (5) Complex mock implementations. Triggers: "jest.mock", "vi.mock", "spyOn", "fakeTimers", "mockImplementation", "mockReturnValue", "mock lifecycle"
/python-code-review-and-lintingRuff linting rules, security patterns, mypy type checking, and Python code review best practices. PROACTIVELY activate for: (1) Setting up Ruff linting, (2) Fixing security vulnerabilities, (3) Resolving mypy type errors, (4) Code review for anti-patterns, (5) Python best practices enforcement. Triggers: "ruff", "lint", "refactor", "security", "anti-pattern", "python review", "mypy", "type error"
/python-testing-patternsPytest fixtures, parametrization, mocking, and test organization patterns. PROACTIVELY activate for: (1) Writing pytest test suites, (2) Creating fixtures, (3) Implementing parametrized tests, (4) Mocking external dependencies, (5) Organizing test directories. Triggers: "pytest", "fixture", "parametrize", "mock", "python test", "unittest", "conftest"
npx claudepluginhub agentient/vibekit --plugin quality-toolsOther plugins' skills for the same job