eslint-fixes

Solid

Resolve specific ESLint errors and warnings that appear in this project. Use when fixing lint failures, ESLint reported issues, or autofix conflicts (e.g. no-void, canonical/export-specifier-newline vs prettier, no-shadow trailing underscores, sonarjs/deprecation, you-dont-need-lodash-underscore, testing-library/prefer-screen-queries, testing-library/await-async-events, jest-dom/prefer-*).

Testing & QA 20 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 77/100

Stars 20%
44
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ESLint Fix Patterns How to resolve specific ESLint errors in this project. ## no-void Don't use the `void` operator in event listener functions. Instead, make the function `async` and `await` the promise. ```tsx // BAD const handleClickNavigate = () => { void navigate('/path'); }; // GOOD const handleClickNavigate = async () => { await navigate('/path'); }; ``` ## canonical/export-specifier-newline vs prettier conflict Use inline `export const` declarations instead of a grouped `export { ... }` statement to avoid circular fix warnings between these two rules. ```tsx // BAD, causes circular fix between prettier and canonical export {DAYS, DURATIONS, FITNESS_GOALS}; // GOOD, declare with export directly export const DAYS = ['mon', 'tue'] as const; export const DURATIONS = [15, 30, 45] as const; export const FITNESS_GOALS = ['weight_loss'] as const; ``` ## no-shadow trailing underscores ESLint's `no-shadow` autofixes by appending `_`. Once shadowing is resolved, remove the trailing `_`. ## sonarjs/deprecation Never suppress with `eslint-disable`. Always fix the underlying deprecation. Common case: Zod v4 deprecated `z.string().email()` in favor of `z.email()`. ```tsx // BAD, suppressing the warning // eslint-disable-next-line sonarjs/deprecation email: z.string().email(), // GOOD, use the non-deprecated API email: z.email(), ``` ## you-dont-need-lodash-underscore/\* Use native JavaScript instead of lodash/underscore equivalents. ```tsx // BAD import _ fr...

Details

Author
gaia-react
Repository
gaia-react/gaia
Created
1 years ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Solid

a11y-fixes

Resolve axe-core accessibility violations reported by Vitest (test/a11y.ts), Playwright (.playwright/a11y.ts), or the code-audit-frontend agent's a11y bucket. Trigger on any axe rule id appearing in test output, not only the ones named here. Contains fix patterns for the most common violations (color-contrast, label, label-title-only, image-alt, button-name, link-name, region, landmark-one-main, heading-order, aria-allowed-attr, aria-required-attr, aria-required-children, aria-required-parent, aria-valid-attr-value, focus-trap, tabindex, html-has-lang, document-title, duplicate-id, listitem, definition-list); for any violation not listed, apply the general axe guidance and the same fix-then-verify loop.

20 Updated today
gaia-react
AI & Automation Listed

typescript-clean-code

Use as a TypeScript or JavaScript correctness lens for type modelling, strictness, null/error boundaries, async ownership, and tests. Not a lifecycle owner or reason to rewrite stable conventions; combine with the task owner.

2 Updated today
mblauberg
Data & Documents Listed

javascript-patterns

JavaScript language patterns, modern syntax, async handling, module systems (ESM/CJS), error handling, and review checklist for JavaScript code without TypeScript. Use whenever the project contains `.js`, `.mjs`, `.cjs`, or `.jsx` files (and no `tsconfig.json`), `package.json` without TypeScript dependencies, OR the user asks about JavaScript, JS, ECMAScript, async/await, promises, modules, ESM, CommonJS, package.json, npm, pnpm, yarn, bun, or any work in JavaScript code without explicit TypeScript usage, even if "JavaScript" is not mentioned by name.

0 Updated today
ku5ic