A small linter that prevents the use of number as z-index value directly. To pass this rule, you may use css variable to manage z-index values.
npm install --save-dev plugin/z-index-no-number
// .stylelintrc
{
"plugins": [
"plugin/z-index-no-number"
],
}
🟢 { z-index: var(--tooltip-z-index) }
⛔️ { z-index: 1000 }