js-conventions

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 analysis with AI run npm run lint and npm t
  • Use npm run fix if errors/warnings detected to auto-fix when possible

Formatting

  • Use single quotes and semicolons
  • Keep max line length 80 (ignore URLs)
Related skills

More from metarhia/skills

Installs
2
Repository
metarhia/skills
GitHub Stars
28
First Seen
Mar 26, 2026