TYPO3 v10 has reached end-of-life as of April 30th 2023 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.

Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.

JavaScript Coding Guidelines

The rules suggested in the Airbnb JavaScript Style Guide should be used throughout the TYPO3 CMS core for JavaScript files.

Note that the TYPO3 core typically uses TypeScript now and automatically converts it to JavaScript.

Directories and Filenames

  • JavaScript files should have the file ending .js

  • JavaScript files are located under <extension>/Resources/Public/JavaScript/


  • Use spaces, not TABs.

  • Indent with 2 spaces.

  • Use single quotes ('') for strings.

  • Prefix jQuery object variables with a $.

More Information