Skip to content

Commit a1d5f5a

Browse files
committed
feat: update alpha-value-notation rule
1 parent ffca7ce commit a1d5f5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rules/stylelint/alpha-value-notation.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { RuleConfig } from '../rule-config'
22
import type { CSSPropertiesMap } from '../../types'
3+
import type { RegExpLike } from '../../utils'
34

45
export type AlphaValueNotationPrimaryOptions = 'number' | 'percentage'
56

@@ -8,7 +9,7 @@ export interface AlphaValueNotationSecondaryOptions {
89
* Reverse the primary option for matching properties.
910
* @see [optional secondary options](https://stylelint.io/user-guide/rules/alpha-value-notation#optional-secondary-options)
1011
*/
11-
exceptProperties?: (CSSPropertiesMap | RegExp | `/${string}/`)[]
12+
exceptProperties?: (CSSPropertiesMap | RegExpLike)[]
1213

1314
message?: string | ((unfixed: string, fixed: string) => string)
1415
}

0 commit comments

Comments
 (0)