Skip to content

Commit e780fed

Browse files
committed
feat: sync to 3.1.1
1 parent e4122da commit e780fed

20 files changed

+1332
-975
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = defineConfig({
2727
})
2828
```
2929

30-
![](./static/demo.png)
30+
![demo](./static/demo.png)
3131

3232
## Credits
3333

lib/rules/at-rule-name-case.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import type { RuleConfig } from 'stylelint-define-config'
22

33
export type AtRuleNameCaseOptions = RuleConfig<
4-
'lower' | 'upper'
4+
'lower' | 'upper',
5+
{
6+
message?: string | ((name: string, expectedName: string) => string)
7+
}
58
>

lib/rules/color-hex-case.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import type { RuleConfig } from 'stylelint-define-config'
22

33
export type ColorHexCaseOptions = RuleConfig<
4-
'lower' | 'upper'
4+
'lower' | 'upper',
5+
{
6+
message?: string | ((value: string, expected: string) => string)
7+
}
58
>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
import type { RuleConfig } from 'stylelint-define-config'
22

3-
export type FunctionMaxEmptyLinesOptions = RuleConfig<number>
3+
export type FunctionMaxEmptyLinesOptions = RuleConfig<number, {
4+
message?: string | ((primary: number) => string)
5+
}>

lib/rules/indentation.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ export type IndentationOptions = RuleConfig<
88
indentClosingBrace?: boolean
99
except?: ('block' | 'param' | 'value')[]
1010
ignore?: ('inside-parens' | 'param' | 'value')[]
11+
message?: string | ((expectation: string) => string)
1112
}
1213
>

lib/rules/linebreaks.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import type { RuleConfig } from 'stylelint-define-config'
22

33
export type LinebreaksOptions = RuleConfig<
4-
'unix' | 'windows'
4+
number,
5+
{
6+
message?: string | ((emptyLines: string) => string)
7+
}
58
>

lib/rules/max-line-length.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export type MaxLineLengthOptions = RuleConfig<
55
{
66
ignore?: ('non-comments' | 'comments')[]
77
ignorePattern?: RegExpLike[]
8+
message?: string | ((lineLength: number) => string)
89
}
910
>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import type { RuleConfig } from 'stylelint-define-config'
22

33
export type MediaFeatureNameCaseOptions = RuleConfig<
4-
'lower' | 'upper'
4+
'lower' | 'upper',
5+
{
6+
message?: string | ((name: string, expectedName: string) => string)
7+
}
58
>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { RuleConfig } from 'stylelint-define-config'
2+
3+
export type NamedGridAreasAlignmentOptions = RuleConfig<true, {
4+
gap?: number
5+
alignQuotes?: boolean
6+
message?: string | (() => string)
7+
}>

lib/rules/property-case.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import type { RuleConfig } from 'stylelint-define-config'
22

33
export type PropertyCaseOptions = RuleConfig<
4-
'lower' | 'upper'
4+
'lower' | 'upper',
5+
{
6+
message?: string | ((property: string, expectedProperty: string) => string)
7+
}
58
>

0 commit comments

Comments
 (0)