spatie-javascript

Enforce Spatie JavaScript coding standards for JS/TS files and Prettier or ESLint configurations.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/alslimany/tams --skill spatie-javascript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spatie-javascript
Source: https://github.com/alslimany/tams/tree/main/.agents/skills/spatie-javascript
Command: npx skills add https://github.com/alslimany/tams --skill spatie-javascript

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill codifies Spatie's JavaScript guidelines to ensure consistent, readable code across projects.

Core Features & Use Cases

  • Enforces 4-space indentation and 120-character line width.
  • Standardizes quotes to single quotes and prefers const over let.
  • Guides on destructuring, function declarations, and object method syntax; applicable during coding, reviewing, and configuring tools like Prettier and ESLint.

Quick Start

Configure your project to apply Spatie JS rules for new files and refactors.

Frequently Asked Questions about spatie-javascript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Spatie JavaScript coding standards for consistent TypeScript and JavaScript code?

To enforce Spatie JavaScript coding standards, configure your project to apply rules for 4-space indentation, 120-character line width, and single quotes across .js, .ts, .jsx, .tsx, and .vue files to ensure consistent, readable JS and TS code.

Can I use this to configure Prettier and ESLint for Spatie's destructuring and function syntax guidelines?

Yes, you can use this to configure Prettier and ESLint, as it specifically standardizes quotes, prefers const over let, and guides destructuring, function declarations, and object method syntax according to Spatie's frontmatter specifications.

What is the best way to standardize variable declarations and quote styles in Vue and TSX projects?

The best way to standardize variable declarations and quote styles in Vue and TSX projects is to apply Spatie JS rules, which prefer const over let, enforce single quotes, and mandate 4-space indentation for clean, readable code.

Does this coding standard work with both JavaScript and TypeScript file formats?

Yes, this coding standard works with both JavaScript and TypeScript file formats, explicitly supporting .js, .ts, .jsx, .tsx, and .vue projects for writing, reviewing, refactoring, and formatting code.

Why does my JavaScript code need specific indentation and line width configurations during refactoring?

Your JavaScript code needs specific indentation and line width configurations during refactoring to maintain consistency, readability, and structural integrity across the project, enforcing 4-space indentation and a 120-character line width limit.

Are there limitations to what code formatting rules this covers for object method syntax?

This covers guidelines for object method syntax, function declarations, destructuring, variable declarations, indentation, and quote styles, but does not specify limitations beyond enforcing these specified Spatie coding standards.