javascript-code-style

Installation
SKILL.md

JavaScript Code Style

Use following conventions for JavaScript and TypeScript code.

Preparations

  • Add to dev dependencies in package.json if not added:
    • eslint-config-metarhia
    • eslint, prettier
  • Add scripts in package.json if not added:
    • "lint": "eslint . && prettier --check "/*.js" "/.json" "**/.md" "*/.ts""
    • "fix": "eslint . --fix && prettier --write "/*.js" "/.json" "**/.md" "*/.ts""
  • Before and after code analisys with AI run npm run lint and npm t
  • Use npm run fix if errors/warnings detected to auto-fix when possible

Formatting

Installs
5
GitHub Stars
59
First Seen
Mar 12, 2026