Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 605 Bytes

max-depth.md

File metadata and controls

38 lines (28 loc) · 605 Bytes

Enforce the maximum depth of the directory structure

Enforces a maximum directory depth. Default is 5.

Fail

.
└── foo
    └── bar
        └── baz
            └── unicorn
                └── rainbow
                    └── docs
                        └── readme.md

Pass

.
└── foo
    └── bar
        └── baz
            └── unicorn
                └── rainbow
                    └── readme.md

Options

You can set the max option like this:

"max-depth": ["error", {"max": 10}]