File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ import type { NoDuplicateSelectorsOptions } from './no-duplicate-selectors'
85
85
import type { NoEmptySourceOptions } from './no-empty-source'
86
86
import type { NoInvalidDoubleSlashCommentsOptions } from './no-invalid-double-slash-comments'
87
87
import type { NoInvalidPositionAtImportRuleOptions } from './no-invalid-position-at-import-rule'
88
+ import type { NoInvalidPositionDeclarationOptions } from './no-invalid-position-declaration'
88
89
import type { NoIrregularWhitespaceOptions } from './no-irregular-whitespace'
89
90
import type { NoUnknownAnimationsOptions } from './no-unknown-animations'
90
91
import type { NoUnknownCustomMediaOptions } from './no-unknown-custom-media'
@@ -2024,6 +2025,20 @@ export interface StyleLintRules {
2024
2025
*/
2025
2026
'no-invalid-position-at-import-rule' : NoInvalidPositionAtImportRuleOptions
2026
2027
2028
+ /**
2029
+ * Disallow invalid position declarations.
2030
+ *
2031
+ * ```scss
2032
+ * color: red;
2033
+ * // ^^^^^
2034
+ * // This declaration
2035
+ * ```
2036
+ * Declarations can only be positioned within the `<declaration-list>`, `<declaration-rule-list>` and `<block-contents>` productions.
2037
+ *
2038
+ * @see [no-invalid-position-declaration](https://stylelint.io/user-guide/rules/no-invalid-position-declaration)
2039
+ */
2040
+ 'no-invalid-position-declaration' : NoInvalidPositionDeclarationOptions
2041
+
2027
2042
/**
2028
2043
* Disallow irregular whitespaces.
2029
2044
*
Original file line number Diff line number Diff line change
1
+ import type { RuleConfig } from '../rule-config'
2
+
3
+ export type NoInvalidPositionDeclarationOptions = RuleConfig < true >
You can’t perform that action at this time.
0 commit comments