File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ import type { PropertyNoDeprecatedOptions } from './property-no-deprecated'
97
97
import type { PropertyNoUnknownOptions } from './property-no-unknown'
98
98
import type { PropertyNoVendorPrefixOptions } from './property-no-vendor-prefix'
99
99
import type { RuleEmptyLineBeforeOptions } from './rule-empty-line-before'
100
+ import type { RuleNestingAtRuleRequiredListOptions } from './rule-nesting-at-rule-required-list'
100
101
import type { RuleSelectorPropertyDisallowedListOptions } from './rule-selector-property-disallowed-list'
101
102
import type { SectorAnbNoUnmatchableOptions } from './selector-anb-no-unmatchable'
102
103
import type { SelectorAttributeNameDisallowedListOptions } from './selector-attribute-name-disallowed-list'
@@ -2261,6 +2262,17 @@ export interface StyleLintRules {
2261
2262
*/
2262
2263
'rule-empty-line-before' : RuleEmptyLineBeforeOptions
2263
2264
2265
+ /**
2266
+ * Require rules to be nested in specific at-rules.
2267
+ *
2268
+ * ```scss
2269
+ * a { color: red; }
2270
+ * // ^^^^^
2271
+ * // This rule
2272
+ * ```
2273
+ */
2274
+ 'rule-nesting-at-rule-required-list' : RuleNestingAtRuleRequiredListOptions
2275
+
2264
2276
/**
2265
2277
* Specify a list of disallowed properties for selectors within rules.
2266
2278
*
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config'
2
+
3
+ export type RuleNestingAtRuleRequiredListOptions = RuleConfig < ( string | RegExp ) [ ] >
You can’t perform that action at this time.
0 commit comments