Skip to content

Commit 94a2924

Browse files
committed
feat: add ignoreLonghands: [] to declaration-block-no-redundant-longhand-properties
1 parent b78279f commit 94a2924

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/rules/stylelint/declaration-block-no-redundant-longhand-properties.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { RuleConfig } from '../rule-config'
33
export type DeclarationBlockNoRedundantLonghandPropertiesOptions = RuleConfig<
44
true,
55
{
6+
ignoreLonghands?: string[]
67
ignoreShorthands?: (string | RegExp)[]
78
message?: string | ((props: string) => string)
89
}

src/rules/stylelint/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ export interface StyleLintRules {
668668
*
669669
* ### Optional Secondary Options
670670
* - `ignoreShorthands`
671+
* - `ignoreLonghands`
671672
*
672673
* @see [declaration-block-no-redundant-longhand-properties](https://stylelint.io/user-guide/rules/declaration-block-no-redundant-longhand-properties)
673674
*/
@@ -1849,8 +1850,10 @@ export interface StyleLintRules {
18491850
* ```scss
18501851
* \@custom-media --sm (min-width: 40rem);
18511852
* // ^^^^
1853+
* // This custom media query name
18521854
* \@media (--sm) {}
18531855
* // ^^^^
1856+
* // And this one
18541857
* ```
18551858
*
18561859
* This rule considers custom media queries defined **within the same source** to be known.

0 commit comments

Comments
 (0)