How to Implement TypoScript Lint in TYPO3?

Category : TypoScript , By : Keval Pandya

Are you looking to implement TypoScript lint in TYPO3? For better TYPO3 code quality, Always pass your TypoScript code with below lint.

Step 1. Install and Configure TypoScript Lint

// Globally install TypoScript lint
composer global require helmich/typo3-typoscript-lint

// Project wise install TypoScript lint
composer require helmich/typo3-typoscript-lint

Step 2. Prepare .tslint.yaml

// Create .tslint.yaml at your root of project
  - Configuration

  - "*.typoscript"

  - class: Indentation
      indentConditions: true
  - class: RepeatingRValue
    disabled: true
  - class: DeadCode
    disabled: true

Step 3. Code Review Your TypoScript Code

// Run TypoScript Lint
/home/nitsan/.composer/vendor/bin/typoscript-lint -c .tslint.yaml

To keep improving, Do you have feedback and suggestions? Or, Are you facing any issues to implement above TYPO3 tutorial? Feel free to write your comment at below comment box; I'll happy to help you :)

Post Comment

Your email address will not be published. Required fields are marked *


Name is required!

Enter valid name

Valid email is required!

Enter valid email address

Comment is required!

Google Captcha Is Required!

Be the First to Comment

Stay up to date with our recent TYPO3 Blogs, news, & updates