Skip to content

vue/max-template-depth

enforce maximum depth of template

📖 Rule Details

This rule enforces a maximum depth of the template in a Vue SFC, in order to aid in maintainability and reduce complexity.

🔧 Options

This rule takes an object, where you can specify the maximum depth allowed in a Vue SFC template block. There is one property that can be specified for the object.

  • maxDepth ... Specify the maximum template depth template block.

{ maxDepth: 3 }

Now loading...
Now loading...

🚀 Version

This rule was introduced in eslint-plugin-vue v9.28.0

🔍 Implementation