Results: Define Coding Guidelines for JavaScript


Currently we have no guidelines for TYPO3 Core JS files. This result in inconsistency in how code is formatted and makes JS harder to maintain and review new changes.

Unfortunately there is no “One standard to rule them all” in JS world like PSR2 in PHP. One of the most popular standards is the AirBnB ruleset: GitHub - airbnb/javascript: JavaScript Style Guide
I propose to use this standard for JS which is written by hand.

For TypeScript I propose similar rules GitHub - excelmicro/typescript: TypeScript Style Guide

The discussion about this proposal was hosted here: Basic JavaScript CGLs - Discuss Topics - TYPO3 Decisions


  • Let’s get Airbnb rules for JS and ExcelMicro rules for TypeScript
  • I prefer different rule set
  • I don’t care or don’t have an opinion
0 voters

This topic was automatically closed after 7 days. New replies are no longer allowed.