/frontend-js:conventionsfrom frontend-js
House JavaScript/TypeScript coding style — arrow functions, single quotes, full variable names (not sel/fn/e), braces on all control structures, small readable functions, and imports (a registered path alias always beats a ../../../ relative import; register one @alias per top-level dir in vite + tsconfig). Use whenever writing, editing, or reviewing JS/TS (React, Node, any JS/TS) — including renaming a variable to a full name, breaking up a long function, converting quotes or adding braces, replacing a deep relative import with an alias, registering a new @alias, or a pre-push style review. NOT for SCSS/styling (frontend-css:scss-modules), scaffolding a component's folder (frontend-react:component-structure), i18n strings, or Apex.
Ships in frontend-js. 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.
Read when SKILL.md points to them.
House style for all JavaScript and TypeScript. Apply on every JS/TS edit.
In: a JavaScript or TypeScript file being written, edited, or reviewed — React, Node, any JS/TS.
Out: the code holds the house style — arrow functions, single quotes, full descriptive names,
braces on every control structure, small single-responsibility functions, and every import that a
registered alias covers goes through the alias, never ../../../. This IS the acceptance criteria:
the property the changed code must hold.
errorMessage not errMsg, selectedRecord not selRec).{} for all control structures (if, else, for,
while, ...), even for a single-line body.../../../ when an alias exists — use it. Absolute (alias) > relative, always.resolve.alias) AND the
tsconfig paths (with baseUrl) — for EVERY tsconfig, client and server, so
type-check and runtime agree.@ = src root, @shared, @components, @lib,
@stores, @config, @i18n, @hooks, @pages, @api, @utils) — add it the moment
you create the directory. Avoid @types: it collides with TypeScript's built-in @types/
(DefinitelyTyped) resolution — alias the types dir through the base @/types instead.For Salesforce LWC / Aura-specific rules (DOM access, styling) see
salesforce-lwc_development.
grep -nE "\"[^\"]*\"" <files> → strings are single-quoted (allow a double quote only to
avoid escaping an inner ').grep -nE "\.\./\.\./" <files> → no ../../ climb where a registered alias covers the path.if/else/for/while has braces, even a one-line body.errorMessage, not errMsg); each function is
one responsibility; long inline logic is pulled into a named helper.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub aquivalabs/bladeforge --plugin frontend-js