1.2.0 • Published 1 year ago

tc-max-nesting-depth v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

kiforks/max-nesting-depth

Limit the depth of nesting.

Installation

npm install kiforks/max-nesting-depth

Usage

If your project does not already have stylelint, then in the root of the project create the file .stylelintrc, or with the extension .stylelintrc.js so that the code editor can highlight the syntax.

Then add kiforks/max-nesting-depth to the .stylelintrc config file.

.stylelintrc

{
    "plugins": [
      "kiforks/max-nesting-depth"
    ],
    "rules": {
	    "kiforks/max-nesting-depth": [3]
    }
}

Description

This is a rule that is included in the standard styling package, but with an exception ::ng-deep https://stylelint.io/user-guide/rules/list/max-nesting-depth/#optional-secondary-options