Results: Define Coding Guidelines for JavaScript


(Tymoteusz Motylewski) #1

Topic

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: https://github.com/airbnb/javascript
I propose to use this standard for JS which is written by hand.

For TypeScript I propose similar rules https://github.com/excelmicro/typescript

The discussion about this proposal was hosted here: Basic JavaScript CGLs

Vote:

  • 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


Basic JavaScript CGLs
(system) #2

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