@stylelint-types/stylelint-stylistic 3.0.1 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/rules/at-rule-name-case.d.ts +4 -1
- package/lib/rules/color-hex-case.d.ts +4 -1
- package/lib/rules/function-max-empty-lines.d.ts +3 -1
- package/lib/rules/indentation.d.ts +1 -0
- package/lib/rules/linebreaks.d.ts +4 -1
- package/lib/rules/max-line-length.d.ts +1 -0
- package/lib/rules/media-feature-name-case.d.ts +4 -1
- package/lib/rules/named-grid-areas-alignment.d.ts +7 -0
- package/lib/rules/property-case.d.ts +4 -1
- package/lib/rules/selector-descendant-combinator-no-non-space.d.ts +3 -1
- package/lib/rules/selector-max-empty-lines.d.ts +4 -1
- package/lib/rules/selector-pseudo-class-case.d.ts +4 -1
- package/lib/rules/selector-pseudo-element-case.d.ts +4 -1
- package/lib/rules/string-quotes.d.ts +1 -0
- package/lib/rules/unit-case.d.ts +4 -1
- package/lib/rules/value-list-max-empty-lines.d.ts +3 -1
- package/lib/types.d.ts +12 -5
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { RuleConfig } from 'stylelint-define-config'
|
|
2
2
|
|
|
3
|
-
export type SelectorDescendantCombinatorNoNonSpaceOptions = RuleConfig<true
|
|
3
|
+
export type SelectorDescendantCombinatorNoNonSpaceOptions = RuleConfig<true, {
|
|
4
|
+
message?: string | ((value: string) => string)
|
|
5
|
+
}>
|
package/lib/rules/unit-case.d.ts
CHANGED
package/lib/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { AtRuleNameCaseOptions } from './rules/at-rule-name-case'
|
|
1
2
|
import type { AtRuleNameNewlineAfterOptions } from './rules/at-rule-name-newline-after'
|
|
2
3
|
import type { AtRuleNameSpaceAfterOptions } from './rules/at-rule-name-space-after'
|
|
3
|
-
import type {
|
|
4
|
+
import type { AtRuleSemicolonNewlineAfterOptions } from './rules/at-rule-semicolon-newline-after'
|
|
4
5
|
import type { AtRuleSemicolonSpaceBeforeOptions } from './rules/at-rule-semicolon-space-before'
|
|
5
6
|
import type { BlockClosingBraceEmptyLineBeforeOptions } from './rules/block-closing-brace-empty-line-before'
|
|
6
|
-
import type { AtRuleSemicolonNewlineAfterOptions } from './rules/at-rule-semicolon-newline-after'
|
|
7
7
|
import type { BlockClosingBraceNewlineAfterOptions } from './rules/block-closing-brace-newline-after'
|
|
8
8
|
import type { BlockClosingBraceNewlineBeforeOptions } from './rules/block-closing-brace-newline-before'
|
|
9
9
|
import type { BlockClosingBraceSpaceAfterOptions } from './rules/block-closing-brace-space-after'
|
|
@@ -20,11 +20,11 @@ import type { DeclarationBlockSemicolonNewlineBeforeOptions } from './rules/decl
|
|
|
20
20
|
import type { DeclarationBlockSemicolonSpaceAfterOptions } from './rules/declaration-block-semicolon-space-after'
|
|
21
21
|
import type { DeclarationBlockSemicolonSpaceBeforeOptions } from './rules/declaration-block-semicolon-space-before'
|
|
22
22
|
import type { DeclarationBlockTrailingSemicolonOptions } from './rules/declaration-block-trailing-semicolon'
|
|
23
|
+
import type { DeclarationColonNewlineAfterOptions } from './rules/declaration-colon-newline-after'
|
|
23
24
|
import type { DeclarationColonSpaceAfterOptions } from './rules/declaration-colon-space-after'
|
|
24
25
|
import type { DeclarationColonSpaceBeforeOptions } from './rules/declaration-colon-space-before'
|
|
25
26
|
import type { FunctionCommaNewlineAfterOptions } from './rules/function-comma-newline-after'
|
|
26
27
|
import type { FunctionCommaNewlineBeforeOptions } from './rules/function-comma-newline-before'
|
|
27
|
-
import type { DeclarationColonNewlineAfterOptions } from './rules/declaration-colon-newline-after'
|
|
28
28
|
import type { FunctionCommaSpaceAfterOptions } from './rules/function-comma-space-after'
|
|
29
29
|
import type { FunctionCommaSpaceBeforeOptions } from './rules/function-comma-space-before'
|
|
30
30
|
import type { FunctionMaxEmptyLinesOptions } from './rules/function-max-empty-lines'
|
|
@@ -45,14 +45,15 @@ import type { MediaQueryListCommaNewlineAfterOptions } from './rules/media-query
|
|
|
45
45
|
import type { MediaQueryListCommaNewlineBeforeOptions } from './rules/media-query-list-comma-newline-before'
|
|
46
46
|
import type { MediaQueryListCommaSpaceAfterOptions } from './rules/media-query-list-comma-space-after'
|
|
47
47
|
import type { MediaQueryListCommaSpaceBeforeOptions } from './rules/media-query-list-comma-space-before'
|
|
48
|
+
import type { NamedGridAreasAlignmentOptions } from './rules/named-grid-areas-alignment'
|
|
48
49
|
import type { NoEmptyFirstLineOptions } from './rules/no-empty-first-line'
|
|
49
50
|
import type { NoEolWhitespaceOptions } from './rules/no-eol-whitespace'
|
|
50
51
|
import type { NoExtraSemicolonsOptions } from './rules/no-extra-semicolons'
|
|
51
52
|
import type { NoMissingEndOfSourceNewlineOptions } from './rules/no-missing-end-of-source-newline'
|
|
52
53
|
import type { NumberLeadingZeroOptions } from './rules/number-leading-zero'
|
|
53
54
|
import type { NumberNoTrailingZerosOptions } from './rules/number-no-trailing-zeros'
|
|
54
|
-
import type { SelectorAttributeBracketsSpaceInsideOptions } from './rules/selector-attribute-brackets-space-inside'
|
|
55
55
|
import type { PropertyCaseOptions } from './rules/property-case'
|
|
56
|
+
import type { SelectorAttributeBracketsSpaceInsideOptions } from './rules/selector-attribute-brackets-space-inside'
|
|
56
57
|
import type { SelectorAttributeOperatorSpaceAfterOptions } from './rules/selector-attribute-operator-space-after'
|
|
57
58
|
import type { SelectorAttributeOperatorSpaceBeforeOptions } from './rules/selector-attribute-operator-space-before'
|
|
58
59
|
import type { SelectorCombinatorSpaceAfterOptions } from './rules/selector-combinator-space-after'
|
|
@@ -64,8 +65,8 @@ import type { SelectorListCommaSpaceAfterOptions } from './rules/selector-list-c
|
|
|
64
65
|
import type { SelectorListCommaSpaceBeforeOptions } from './rules/selector-list-comma-space-before'
|
|
65
66
|
import type { SelectorMaxEmptyLinesOptions } from './rules/selector-max-empty-lines'
|
|
66
67
|
import type { SelectorPseudoClassCaseOptions } from './rules/selector-pseudo-class-case'
|
|
67
|
-
import type { SelectorPseudoElementCaseOptions } from './rules/selector-pseudo-element-case'
|
|
68
68
|
import type { SelectorPseudoClassParenthesesSpaceInsideOptions } from './rules/selector-pseudo-class-parentheses-space-inside'
|
|
69
|
+
import type { SelectorPseudoElementCaseOptions } from './rules/selector-pseudo-element-case'
|
|
69
70
|
import type { StringQuotesOptions } from './rules/string-quotes'
|
|
70
71
|
import type { UnicodeBomOptions } from './rules/unicode-bom'
|
|
71
72
|
import type { UnitCaseOptions } from './rules/unit-case'
|
|
@@ -415,6 +416,12 @@ export interface RuleOptions {
|
|
|
415
416
|
*/
|
|
416
417
|
'@stylistic/media-query-list-comma-space-before': MediaQueryListCommaSpaceBeforeOptions
|
|
417
418
|
|
|
419
|
+
/**
|
|
420
|
+
* Require cell tokens (and optionally ending quotes) within grid-template-areas to be aligned.
|
|
421
|
+
*
|
|
422
|
+
* @see [value-list-max-empty-lines](https://github.com/stylelint-stylistic/stylelint-stylistic/tree/main/lib/rules/named-grid-areas-alignment)
|
|
423
|
+
*/
|
|
424
|
+
'@stylistic/named-grid-areas-alignment': NamedGridAreasAlignmentOptions
|
|
418
425
|
/**
|
|
419
426
|
* Disallow empty first lines.
|
|
420
427
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylelint-types/stylelint-stylistic",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1.1",
|
|
5
5
|
"description": "TypeScript definitions for stylelint-define-config",
|
|
6
6
|
"author": "pengzhanbo <volodymyr@foxmail.com> (https://github.com/pengzhanbo)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@pengzhanbo/eslint-config": "^1.
|
|
55
|
-
"@stylistic/stylelint-plugin": "^3.
|
|
56
|
-
"bumpp": "^9.
|
|
54
|
+
"@pengzhanbo/eslint-config": "^1.22.0",
|
|
55
|
+
"@stylistic/stylelint-plugin": "^3.1.1",
|
|
56
|
+
"bumpp": "^9.9.2",
|
|
57
57
|
"conventional-changelog-cli": "^5.0.0",
|
|
58
|
-
"eslint": "^9.
|
|
59
|
-
"stylelint": "^16.
|
|
60
|
-
"stylelint-define-config": "^1.
|
|
61
|
-
"typescript": "^5.
|
|
58
|
+
"eslint": "^9.17.0",
|
|
59
|
+
"stylelint": "^16.12.0",
|
|
60
|
+
"stylelint-define-config": "^1.8.1",
|
|
61
|
+
"typescript": "^5.7.2"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"lint": "eslint .",
|