@stylelint-types/stylelint-scss 6.0.0
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/LICENSE +21 -0
- package/README.md +26 -0
- package/lib/index.d.ts +8 -0
- package/lib/rules/at-each-key-value-single-line.d.ts +3 -0
- package/lib/rules/at-else-closing-brace-newline-after.d.ts +8 -0
- package/lib/rules/at-else-closing-brace-space-after.d.ts +5 -0
- package/lib/rules/at-else-empty-line-before.d.ts +5 -0
- package/lib/rules/at-else-if-parentheses-space-before.d.ts +5 -0
- package/lib/rules/at-extend-no-missing-placeholder.d.ts +5 -0
- package/lib/rules/at-function-named-arguments.d.ts +12 -0
- package/lib/rules/at-function-parentheses-space-before.d.ts +5 -0
- package/lib/rules/at-function-pattern.d.ts +3 -0
- package/lib/rules/at-if-closing-brace-newline-after.d.ts +5 -0
- package/lib/rules/at-if-closing-brace-space-after.d.ts +5 -0
- package/lib/rules/at-if-no-null.d.ts +5 -0
- package/lib/rules/at-import-no-partial-leading-underscore.d.ts +3 -0
- package/lib/rules/at-import-partial-extension-blacklist.d.ts +3 -0
- package/lib/rules/at-import-partial-extension-whitelist.d.ts +5 -0
- package/lib/rules/at-import-partial-extension.d.ts +5 -0
- package/lib/rules/at-mixin-argumentless-call-parentheses.d.ts +5 -0
- package/lib/rules/at-mixin-named-arguments.d.ts +5 -0
- package/lib/rules/at-mixin-parentheses-space-before.d.ts +5 -0
- package/lib/rules/at-mixin-pattern.d.ts +5 -0
- package/lib/rules/at-root-no-redundant.d.ts +3 -0
- package/lib/rules/at-rule-conditional-no-parentheses.d.ts +3 -0
- package/lib/rules/at-rule-no-unknown.d.ts +8 -0
- package/lib/rules/at-use-no-redundant-alias.d.ts +3 -0
- package/lib/rules/at-use-no-unnamespaced.d.ts +3 -0
- package/lib/rules/block-no-redundant-nesting.d.ts +3 -0
- package/lib/rules/comment-no-empty.d.ts +3 -0
- package/lib/rules/comment-no-loud.d.ts +3 -0
- package/lib/rules/declaration-nested-properties-no-divided-groups.d.ts +3 -0
- package/lib/rules/declaration-nested-properties.d.ts +5 -0
- package/lib/rules/dimension-no-non-numeric-values.d.ts +3 -0
- package/lib/rules/dollar-variable-colon-newline-after.d.ts +5 -0
- package/lib/rules/dollar-variable-colon-space-after.d.ts +5 -0
- package/lib/rules/dollar-variable-colon-space-before.d.ts +5 -0
- package/lib/rules/dollar-variable-default.d.ts +8 -0
- package/lib/rules/dollar-variable-empty-line-after.d.ts +16 -0
- package/lib/rules/dollar-variable-empty-line-before.d.ts +16 -0
- package/lib/rules/dollar-variable-first-in-block.d.ts +9 -0
- package/lib/rules/dollar-variable-no-missing-interpolation.d.ts +3 -0
- package/lib/rules/dollar-variable-no-namespaced-assignment.d.ts +3 -0
- package/lib/rules/dollar-variable-pattern.d.ts +8 -0
- package/lib/rules/double-slash-comment-empty-line-before.d.ts +9 -0
- package/lib/rules/double-slash-comment-inline.d.ts +8 -0
- package/lib/rules/double-slash-comment-whitespace-inside.d.ts +5 -0
- package/lib/rules/function-calculation-no-interpolation.d.ts +3 -0
- package/lib/rules/function-color-relative.d.ts +3 -0
- package/lib/rules/function-disallowed-list.d.ts +5 -0
- package/lib/rules/function-no-unknown.d.ts +8 -0
- package/lib/rules/function-quote-no-quoted-strings-inside.d.ts +3 -0
- package/lib/rules/function-unquote-no-unquoted-strings-inside.d.ts +3 -0
- package/lib/rules/load-no-partial-leading-underscore.d.ts +3 -0
- package/lib/rules/map-keys-quotes.d.ts +5 -0
- package/lib/rules/media-feature-value-dollar-variable.d.ts +8 -0
- package/lib/rules/no-dollar-variables.d.ts +3 -0
- package/lib/rules/no-duplicate-dollar-variables.d.ts +8 -0
- package/lib/rules/no-duplicate-mixins.d.ts +3 -0
- package/lib/rules/no-global-function-names.d.ts +3 -0
- package/lib/rules/operator-no-newline-after.d.ts +3 -0
- package/lib/rules/operator-no-newline-before.d.ts +3 -0
- package/lib/rules/operator-no-unspaced.d.ts +3 -0
- package/lib/rules/partial-no-import.d.ts +3 -0
- package/lib/rules/percent-placeholder-pattern.d.ts +5 -0
- package/lib/rules/property-no-unknown.d.ts +11 -0
- package/lib/rules/selector-nest-combinators.d.ts +5 -0
- package/lib/rules/selector-no-redundant-nesting-selector.d.ts +8 -0
- package/lib/rules/selector-no-union-class-name.d.ts +3 -0
- package/lib/types.d.ts +733 -0
- package/package.json +69 -0
package/lib/types.d.ts
ADDED
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
import type { AtEachKeyValueSingleLineOptions } from './rules/at-each-key-value-single-line'
|
|
2
|
+
import type { AtElseClosingBraceNewlineAfterOptions } from './rules/at-else-closing-brace-newline-after'
|
|
3
|
+
import type { AtElseEmptyLineBeforeOptions } from './rules/at-else-empty-line-before'
|
|
4
|
+
import type { AtElseIfParenthesesSpaceBeforeOptions } from './rules/at-else-if-parentheses-space-before'
|
|
5
|
+
import type { AtExtendNoMissingPlaceholderOptions } from './rules/at-extend-no-missing-placeholder'
|
|
6
|
+
import type { AtFunctionNamedArgumentsOptions } from './rules/at-function-named-arguments'
|
|
7
|
+
import type { AtFunctionParenthesesSpaceBeforeOptions } from './rules/at-function-parentheses-space-before'
|
|
8
|
+
import type { AtFunctionPatternOptions } from './rules/at-function-pattern'
|
|
9
|
+
import type { AtIfClosingBraceNewlineAfterOptions } from './rules/at-if-closing-brace-newline-after'
|
|
10
|
+
import type { AtIfNoNullOptions } from './rules/at-if-no-null'
|
|
11
|
+
import type { AtIfClosingBraceSpaceAfterOptions } from './rules/at-if-closing-brace-space-after'
|
|
12
|
+
import type { AtImportNoPartialLeadingUnderscoreOptions } from './rules/at-import-no-partial-leading-underscore'
|
|
13
|
+
import type { AtImportPartialExtensionOptions } from './rules/at-import-partial-extension'
|
|
14
|
+
import type { AtImportPartialExtensionBlacklistOptions } from './rules/at-import-partial-extension-blacklist'
|
|
15
|
+
import type { AtImportPartialExtensionWhitelistOptions } from './rules/at-import-partial-extension-whitelist'
|
|
16
|
+
import type { AtMixinArgumentlessCallParenthesesOptions } from './rules/at-mixin-argumentless-call-parentheses'
|
|
17
|
+
import type { AtMixinNamedArgumentsOptions } from './rules/at-mixin-named-arguments'
|
|
18
|
+
import type { AtMixinParenthesesSpaceBeforeOptions } from './rules/at-mixin-parentheses-space-before'
|
|
19
|
+
import type { AtMixinPatternOptions } from './rules/at-mixin-pattern'
|
|
20
|
+
import type { AtRootNoRedundantOptions } from './rules/at-root-no-redundant'
|
|
21
|
+
import type { AtRuleNoUnknownOptions } from './rules/at-rule-no-unknown'
|
|
22
|
+
import type { AtRuleConditionalNoParenthesesOptions } from './rules/at-rule-conditional-no-parentheses'
|
|
23
|
+
import type { AtUseNoRedundantAliasOptions } from './rules/at-use-no-redundant-alias'
|
|
24
|
+
import type { AtUseNoUnnamespacedOptions } from './rules/at-use-no-unnamespaced'
|
|
25
|
+
import type { BlockNoRedundantNestingOptions } from './rules/block-no-redundant-nesting'
|
|
26
|
+
import type { CommentNoEmptyOptions } from './rules/comment-no-empty'
|
|
27
|
+
import type { CommentNoLoudOptions } from './rules/comment-no-loud'
|
|
28
|
+
import type { DeclarationNestedPropertiesNoDividedGroupsOptions } from './rules/declaration-nested-properties-no-divided-groups'
|
|
29
|
+
import type { DimensionNoNonNumericValuesOptions } from './rules/dimension-no-non-numeric-values'
|
|
30
|
+
import type { DeclarationNestedPropertiesOptions } from './rules/declaration-nested-properties'
|
|
31
|
+
import type { DollarVariableColonNewlineAfterOptions } from './rules/dollar-variable-colon-newline-after'
|
|
32
|
+
import type { DollarVariableColonSpaceAfterOptions } from './rules/dollar-variable-colon-space-after'
|
|
33
|
+
import type { DollarVariableColonSpaceBeforeOptions } from './rules/dollar-variable-colon-space-before'
|
|
34
|
+
import type { DollarVariableDefaultOptions } from './rules/dollar-variable-default'
|
|
35
|
+
import type { DollarVariableEmptyLineBeforeOptions } from './rules/dollar-variable-empty-line-before'
|
|
36
|
+
import type { DollarVariableEmptyLineAfterOptions } from './rules/dollar-variable-empty-line-after'
|
|
37
|
+
import type { DollarVariableFirstInBlockOptions } from './rules/dollar-variable-first-in-block'
|
|
38
|
+
import type { DollarVariableNoMissingInterpolationOptions } from './rules/dollar-variable-no-missing-interpolation'
|
|
39
|
+
import type { DollarVariablePatternOptions } from './rules/dollar-variable-pattern'
|
|
40
|
+
import type { DollarVariableNoNamespacedAssignmentOptions } from './rules/dollar-variable-no-namespaced-assignment'
|
|
41
|
+
import type { DoubleSlashCommentEmptyLineBeforeOptions } from './rules/double-slash-comment-empty-line-before'
|
|
42
|
+
import type { DoubleSlashCommentWhitespaceInsideOptions } from './rules/double-slash-comment-whitespace-inside'
|
|
43
|
+
import type { DoubleSlashCommentInlineOptions } from './rules/double-slash-comment-inline'
|
|
44
|
+
import type { FunctionCalculationNoInterpolationOptions } from './rules/function-calculation-no-interpolation'
|
|
45
|
+
import type { FunctionColorRelativeOptions } from './rules/function-color-relative'
|
|
46
|
+
import type { FunctionNoUnknownOptions } from './rules/function-no-unknown'
|
|
47
|
+
import type { FunctionDisallowedListOptions } from './rules/function-disallowed-list'
|
|
48
|
+
import type { FunctionQuoteNoQuotedStringsInsideOptions } from './rules/function-quote-no-quoted-strings-inside'
|
|
49
|
+
import type { FunctionUnquoteNoUnquotedStringsInsideOptions } from './rules/function-unquote-no-unquoted-strings-inside'
|
|
50
|
+
import type { LoadNoPartialLeadingUnderscoreOptions } from './rules/load-no-partial-leading-underscore'
|
|
51
|
+
import type { MapKeysQuotesOptions } from './rules/map-keys-quotes'
|
|
52
|
+
import type { NoDollarVariablesOptions } from './rules/no-dollar-variables'
|
|
53
|
+
import type { MediaFeatureValueDollarVariableOptions } from './rules/media-feature-value-dollar-variable'
|
|
54
|
+
import type { NoDuplicateDollarVariablesOptions } from './rules/no-duplicate-dollar-variables'
|
|
55
|
+
import type { NoGlobalFunctionNamesOptions } from './rules/no-global-function-names'
|
|
56
|
+
import type { NoDuplicateMixinsOptions } from './rules/no-duplicate-mixins'
|
|
57
|
+
import type { OperatorNoNewlineAfterOptions } from './rules/operator-no-newline-after'
|
|
58
|
+
import type { OperatorNoNewlineBeforeOptions } from './rules/operator-no-newline-before'
|
|
59
|
+
import type { OperatorNoUnspacedOptions } from './rules/operator-no-unspaced'
|
|
60
|
+
import type { PartialNoImportOptions } from './rules/partial-no-import'
|
|
61
|
+
import type { PropertyNoUnknownOptions } from './rules/property-no-unknown'
|
|
62
|
+
import type { PercentPlaceholderPatternOptions } from './rules/percent-placeholder-pattern'
|
|
63
|
+
import type { SelectorNoRedundantNestingSelectorOptions } from './rules/selector-no-redundant-nesting-selector'
|
|
64
|
+
import type { SelectorNoUnionClassNameOptions } from './rules/selector-no-union-class-name'
|
|
65
|
+
import type { SelectorNestCombinatorsOptions } from './rules/selector-nest-combinators'
|
|
66
|
+
|
|
67
|
+
export interface Extends {
|
|
68
|
+
'stylelint-config-standard-scss': void
|
|
69
|
+
'stylelint-config-recommended-scss': void
|
|
70
|
+
'stylelint-config-prettier-scss': void
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface Plugins {
|
|
74
|
+
'stylelint-scss': void
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface Syntax {
|
|
78
|
+
'postcss-scss': void
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface RuleOptions {
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* This is a rule that checks for situations where users have:
|
|
85
|
+
* - Done a loop using map-keys
|
|
86
|
+
* - Grabbed the value for that key inside of the loop.
|
|
87
|
+
*
|
|
88
|
+
* @see [at-each-key-value-single-line](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-each-key-value-single-line)
|
|
89
|
+
*/
|
|
90
|
+
'scss/at-each-key-value-single-line': AtEachKeyValueSingleLineOptions
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Require or disallow a newline after the closing brace of `@else` statements.
|
|
94
|
+
*
|
|
95
|
+
* @see [at-else-closing-brace-newline-after](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-else-closing-brace-space-after)
|
|
96
|
+
*/
|
|
97
|
+
'scss/at-else-closing-brace-newline-after': AtElseClosingBraceNewlineAfterOptions
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Require a single space or disallow whitespace after the closing brace of `@else` statements.
|
|
101
|
+
*
|
|
102
|
+
* @see [at-else-closing-brace-space-after](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-else-closing-brace-space-after)
|
|
103
|
+
*/
|
|
104
|
+
'scss/at-else-closing-brace-space-after': AtElseClosingBraceNewlineAfterOptions
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Require an empty line or disallow empty lines before `@`-else.
|
|
108
|
+
*
|
|
109
|
+
* @see [at-else-empty-line-before](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-else-empty-line-before)
|
|
110
|
+
*/
|
|
111
|
+
'scss/at-else-empty-line-before': AtElseEmptyLineBeforeOptions
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Require or disallow a space before `@else if` parentheses.
|
|
115
|
+
*
|
|
116
|
+
* @see [at-else-if-parentheses-space-before](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-else-if-parentheses-space-before)
|
|
117
|
+
*/
|
|
118
|
+
'scss/at-else-if-parentheses-space-before': AtElseIfParenthesesSpaceBeforeOptions
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Disallow at-extends (`@extend`) with missing placeholders.
|
|
122
|
+
*
|
|
123
|
+
* Using a class selector with the `@extend` directive usually results in more generated CSS than when using a placeholder selector. Furthermore, Sass specifically introduced placeholder selectors in order to be used with `@extend`.
|
|
124
|
+
*
|
|
125
|
+
* @see [at-extend-no-missing-placeholder](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-extend-no-missing-placeholder)
|
|
126
|
+
*/
|
|
127
|
+
'scss/at-extend-no-missing-placeholder': AtExtendNoMissingPlaceholderOptions
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Require named parameters in SCSS function call rule.
|
|
131
|
+
*
|
|
132
|
+
* @see [at-function-named-arguments](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-function-named-arguments)
|
|
133
|
+
*/
|
|
134
|
+
'scss/at-function-named-arguments': AtFunctionNamedArgumentsOptions
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Require or disallow a space before `@function` parentheses.
|
|
138
|
+
*
|
|
139
|
+
* @see [at-function-parentheses-space-before](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-function-parentheses-space-before)
|
|
140
|
+
*/
|
|
141
|
+
'scss/at-function-parentheses-space-before': AtFunctionParenthesesSpaceBeforeOptions
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Specify a pattern for Sass/SCSS-like function names.
|
|
145
|
+
*
|
|
146
|
+
* @see [at-function-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-function-pattern)
|
|
147
|
+
*/
|
|
148
|
+
'scss/at-function-pattern': AtFunctionPatternOptions
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Require or disallow a newline after the closing brace of `@if` statements.
|
|
152
|
+
*
|
|
153
|
+
* This rule might have conflicts with Stylelint's core rule
|
|
154
|
+
* [`block-closing-brace-newline-after`](https://stylelint.io/user-guide/rules/block-closing-brace-newline-after)
|
|
155
|
+
* if it doesn't have `"ignoreAtRules": ["if"]` in a `.stylelintrc` config file.
|
|
156
|
+
* That's because an `@if { ... }` statement can be successfully parsed as an at-rule with a block.
|
|
157
|
+
* You might also want to set `"ignoreAtRules": ["else"]` for another stylelint's core rule -
|
|
158
|
+
* [`at-rule-empty-line-before`](https://stylelint.io/user-guide/rules/at-rule-empty-line-before)
|
|
159
|
+
* that could be forcing empty lines before at-rules (including `@else`s that follow `@if`s or other `@else`s).
|
|
160
|
+
*
|
|
161
|
+
* @see [at-if-closing-brace-newline-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-if-closing-brace-newline-after)
|
|
162
|
+
*/
|
|
163
|
+
'scss/at-if-closing-brace-newline-after': AtIfClosingBraceNewlineAfterOptions
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Require a single space or disallow whitespace after the closing brace of `@if` statements.
|
|
167
|
+
*
|
|
168
|
+
* This rule might have conflicts with Stylelint's core
|
|
169
|
+
* [`block-closing-brace-space-after`](https://stylelint.io/user-guide/rules/block-closing-brace-space-after) rule if the latter is set up in your `.stylelintrc` config file.
|
|
170
|
+
*
|
|
171
|
+
* @see [at-if-closing-brace-space-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-if-closing-brace-space-after)
|
|
172
|
+
*/
|
|
173
|
+
'scss/at-if-closing-brace-space-after': AtIfClosingBraceSpaceAfterOptions
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Check for equality to null is unnecessarily explicit since `null` is falsey in Sass.
|
|
177
|
+
*
|
|
178
|
+
* @see [at-if-no-null](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-if-no-null)
|
|
179
|
+
*/
|
|
180
|
+
'scss/at-if-no-null': AtIfNoNullOptions
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Require or disallow extension in `@import` commands.
|
|
184
|
+
*
|
|
185
|
+
* The rule ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
186
|
+
* - If the file’s extension is `.css`.
|
|
187
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
188
|
+
* - If the filename is a `url()`.
|
|
189
|
+
* - If the `@import` has any media queries.
|
|
190
|
+
*
|
|
191
|
+
* @see [at-import-partial-extension](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-import-partial-extension)
|
|
192
|
+
*/
|
|
193
|
+
'scss/at-import-partial-extension': AtImportPartialExtensionOptions
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Disallow leading underscore in partial names in `@import`.
|
|
197
|
+
*
|
|
198
|
+
* The rule ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
199
|
+
* - If the file’s extension is `.css`.
|
|
200
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
201
|
+
* - If the filename is a `url()`.
|
|
202
|
+
* - If the `@import` has any media queries.
|
|
203
|
+
*
|
|
204
|
+
* @see [at-import-no-partial-leading-underscore](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-import-no-partial-leading-underscore)
|
|
205
|
+
*/
|
|
206
|
+
'scss/at-import-no-partial-leading-underscore': AtImportNoPartialLeadingUnderscoreOptions
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Specify a blacklist of disallowed file extensions for partial names in `@import` commands.
|
|
210
|
+
*
|
|
211
|
+
* The rule ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
212
|
+
* - If the file’s extension is `.css`.
|
|
213
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
214
|
+
* - If the filename is a `url()`.
|
|
215
|
+
* - If the `@import` has any media queries.
|
|
216
|
+
*
|
|
217
|
+
* @see [at-import-partial-extension-blacklist](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-import-partial-extension-blacklist)
|
|
218
|
+
*/
|
|
219
|
+
'scss/at-import-partial-extension-blacklist': AtImportPartialExtensionBlacklistOptions
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Specify a whitelist of allowed file extensions for partial names in `@import` commands.
|
|
223
|
+
*
|
|
224
|
+
* The rule ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
225
|
+
* - If the file’s extension is `.css`.
|
|
226
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
227
|
+
* - If the filename is a `url()`.
|
|
228
|
+
* - If the `@import` has any media queries.
|
|
229
|
+
*
|
|
230
|
+
* @see [at-import-partial-extension-whitelist](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-import-partial-extension-whitelist)
|
|
231
|
+
*/
|
|
232
|
+
'scss/at-import-partial-extension-whitelist': AtImportPartialExtensionWhitelistOptions
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Require named parameters in at-mixin call rule.
|
|
236
|
+
*
|
|
237
|
+
* @see [at-mixin-named-arguments](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-named-arguments)
|
|
238
|
+
*/
|
|
239
|
+
'scss/at-mixin-named-arguments': AtMixinNamedArgumentsOptions
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Require or disallow parentheses in argumentless `@mixin` calls.
|
|
243
|
+
*
|
|
244
|
+
* @see [at-mixin-argumentless-call-parentheses](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-argumentless-call-parentheses)
|
|
245
|
+
*/
|
|
246
|
+
'scss/at-mixin-argumentless-call-parentheses': AtMixinArgumentlessCallParenthesesOptions
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Require or disallow a space before `@mixin` parentheses.
|
|
250
|
+
*
|
|
251
|
+
* @see [at-mixin-parentheses-space-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-parentheses-space-before)
|
|
252
|
+
*/
|
|
253
|
+
'scss/at-mixin-parentheses-space-before': AtMixinParenthesesSpaceBeforeOptions
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Specify a pattern for Sass/SCSS-like mixin names.
|
|
257
|
+
*
|
|
258
|
+
* @see [at-mixin-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-mixin-pattern)
|
|
259
|
+
*/
|
|
260
|
+
'scss/at-mixin-pattern': AtMixinPatternOptions
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Disallow redundant `@at-root` rule.
|
|
264
|
+
*
|
|
265
|
+
* The `@at-root` rule is redundant in the following cases:
|
|
266
|
+
* - If `@at-root` is already at the root of the document.
|
|
267
|
+
* - If any `@at-root` selector contains the parent selector, [`&`](https://sass-lang.com/documentation/style-rules/parent-selector/), outside interpolation.
|
|
268
|
+
* - If `@at-root` is nested within a `@keyframes` block.
|
|
269
|
+
*
|
|
270
|
+
* @see [at-root-no-redundant](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-root-no-redundant)
|
|
271
|
+
*/
|
|
272
|
+
'scss/at-root-no-redundant': AtRootNoRedundantOptions
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Disallow parentheses in conditional @ rules (if, elsif, while)
|
|
276
|
+
*
|
|
277
|
+
* @see [at-rule-conditional-no-parentheses](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-rule-conditional-no-parentheses)
|
|
278
|
+
*/
|
|
279
|
+
'scss/at-rule-conditional-no-parentheses': AtRuleConditionalNoParenthesesOptions
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Disallow unknown at-rules. Should be used **instead of** Stylelint's [at-rule-no-unknown](https://stylelint.io/user-guide/rules/at-rule-no-unknown).
|
|
283
|
+
*
|
|
284
|
+
* This rule is basically a wrapper around the mentioned core rule,
|
|
285
|
+
* but with added SCSS-specific `@`-directives. So if you use the core rule, `@if`,
|
|
286
|
+
* `@extend` and other Sass-y things will get warnings. You must disable Stylelint's core
|
|
287
|
+
* rule to make this rule work:
|
|
288
|
+
* ```json
|
|
289
|
+
* {
|
|
290
|
+
* "rules": {
|
|
291
|
+
* "at-rule-no-unknown": null,
|
|
292
|
+
* "scss/at-rule-no-unknown": true
|
|
293
|
+
* }
|
|
294
|
+
* }
|
|
295
|
+
* ```
|
|
296
|
+
*
|
|
297
|
+
* @see [at-rule-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-rule-no-unknown)
|
|
298
|
+
*/
|
|
299
|
+
'scss/at-rule-no-unknown': AtRuleNoUnknownOptions
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Disallow redundant namespace aliases.
|
|
303
|
+
*
|
|
304
|
+
* @see [at-use-no-redundant-alias](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-use-no-redundant-alias)
|
|
305
|
+
*/
|
|
306
|
+
'scss/at-use-no-redundant-alias': AtUseNoRedundantAliasOptions
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Disallow usage of `@use` without a namespace.
|
|
310
|
+
*
|
|
311
|
+
* @see [at-use-no-unnamespaced](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/at-use-no-unnamespaced)
|
|
312
|
+
*/
|
|
313
|
+
'scss/at-use-no-unnamespaced': AtUseNoUnnamespacedOptions
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Disallow empty comments. Should be used **instead of** the Stylelint's [comment-no-empty](https://stylelint.io/user-guide/rules/comment-no-empty) because the core rule ignores SCSS-like comments.
|
|
317
|
+
*
|
|
318
|
+
* To avoid duplicate issues, you must disable the core rule as follows:
|
|
319
|
+
* ```json
|
|
320
|
+
* {
|
|
321
|
+
* "rules": {
|
|
322
|
+
* "comment-no-empty": null,
|
|
323
|
+
* "scss/comment-no-empty": true
|
|
324
|
+
* }
|
|
325
|
+
* }
|
|
326
|
+
* ```
|
|
327
|
+
*
|
|
328
|
+
* @see [comment-no-empty](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/comment-no-empty)
|
|
329
|
+
*/
|
|
330
|
+
'scss/comment-no-empty': CommentNoEmptyOptions
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Disallow nesting a single block if it could be merged with its parent block.
|
|
334
|
+
*
|
|
335
|
+
* @see [block-no-redundant-nesting](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/block-no-redundant-nesting)
|
|
336
|
+
*/
|
|
337
|
+
'scss/block-no-redundant-nesting': BlockNoRedundantNestingOptions
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Require or disallow properties with `-` in their names to be in a form of a nested group.
|
|
341
|
+
*
|
|
342
|
+
* @see [declaration-nested-properties](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/declaration-nested-properties)
|
|
343
|
+
*/
|
|
344
|
+
'scss/declaration-nested-properties': DeclarationNestedPropertiesOptions
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Disallow `/*`-comments.
|
|
348
|
+
*
|
|
349
|
+
* This rule only works on CSS comments (`\/* *\/`) and ignores all double-slash (`//`) comments.
|
|
350
|
+
*
|
|
351
|
+
* @see [comment-no-loud](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/comment-no-loud)
|
|
352
|
+
*/
|
|
353
|
+
'scss/comment-no-loud': CommentNoLoudOptions
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Disallow nested properties of the same "namespace" be divided into multiple groups.
|
|
357
|
+
*
|
|
358
|
+
* A "namespace" is everything before the first `-` in property names,
|
|
359
|
+
* e.g. `margin` in `margin-bottom`. It is the "namespace" that is used as a root identifier
|
|
360
|
+
* for a nested properties group (`font` in the example above).
|
|
361
|
+
*
|
|
362
|
+
*[Sass official docs on nested properties](https://sass-lang.com/documentation/style-rules/declarations#nesting).
|
|
363
|
+
*
|
|
364
|
+
* @see [declaration-nested-properties-no-divided-groups](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/declaration-nested-properties-no-divided-groups)
|
|
365
|
+
*/
|
|
366
|
+
'scss/declaration-nested-properties-no-divided-groups': DeclarationNestedPropertiesNoDividedGroupsOptions
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Interpolating a value with a unit (e.g. `#{$value}px`) results in a
|
|
370
|
+
* _string_ value, not as numeric value. This value then cannot be used in
|
|
371
|
+
* numerical operations. It is better to use arithmetic to apply a unit to a
|
|
372
|
+
* number (e.g. `$value * 1px`).
|
|
373
|
+
*
|
|
374
|
+
* This rule requires that all interpolation for values should be in the format
|
|
375
|
+
* `$value * 1<unit>` instead of `#{value}<unit>`
|
|
376
|
+
*
|
|
377
|
+
* @see [dimension-no-non-numeric-values](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dimension-no-non-numeric-values)
|
|
378
|
+
*/
|
|
379
|
+
'scss/dimension-no-non-numeric-values': DimensionNoNonNumericValuesOptions
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Require a newline after the colon in `$`-variable declarations.
|
|
383
|
+
*
|
|
384
|
+
* @see [dollar-variable-colon-newline-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-colon-newline-after)
|
|
385
|
+
*/
|
|
386
|
+
'scss/dollar-variable-colon-newline-after': DollarVariableColonNewlineAfterOptions
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Require or disallow whitespace after the colon in `$`-variable declarations.
|
|
390
|
+
*
|
|
391
|
+
* @see [dollar-variable-colon-space-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-colon-space-after)
|
|
392
|
+
*/
|
|
393
|
+
'scss/dollar-variable-colon-space-after': DollarVariableColonSpaceAfterOptions
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Require a single space or disallow whitespace before the colon in `$`-variable declarations.
|
|
397
|
+
*
|
|
398
|
+
* @see [dollar-variable-colon-space-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-colon-space-before)
|
|
399
|
+
*/
|
|
400
|
+
'scss/dollar-variable-colon-space-before': DollarVariableColonSpaceBeforeOptions
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Require `!default` flag for `$`-variable declarations
|
|
404
|
+
*
|
|
405
|
+
* @see [dollar-variable-default](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-default)
|
|
406
|
+
*/
|
|
407
|
+
'scss/dollar-variable-default': DollarVariableDefaultOptions
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Require an empty line or disallow empty lines after `$`-variable declarations.
|
|
411
|
+
*
|
|
412
|
+
* If the `$`-variable declaration is the last declaration in a file, it's ignored.
|
|
413
|
+
*
|
|
414
|
+
* @see [dollar-variable-empty-line-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-empty-line-after)
|
|
415
|
+
*/
|
|
416
|
+
'scss/dollar-variable-empty-line-after': DollarVariableEmptyLineAfterOptions
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Require `$`-variable declarations to be placed first in a block (root or a rule).
|
|
420
|
+
*
|
|
421
|
+
* @see [dollar-variable-first-in-block](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-first-in-block)
|
|
422
|
+
*/
|
|
423
|
+
'scss/dollar-variable-first-in-block': DollarVariableFirstInBlockOptions
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Require an empty line or disallow empty lines before `$`-variable declarations.
|
|
427
|
+
*
|
|
428
|
+
* If the `$`-variable declaration is the first declaration in a file, it's ignored.
|
|
429
|
+
*
|
|
430
|
+
* @see [dollar-variable-empty-line-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-empty-line-before)
|
|
431
|
+
*/
|
|
432
|
+
'scss/dollar-variable-empty-line-before': DollarVariableEmptyLineBeforeOptions
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Disallow Sass variables that are used without interpolation with CSS features that use custom identifiers.
|
|
436
|
+
*
|
|
437
|
+
* Sass variables that contain a custom identifier as a string always require interpolation when used.
|
|
438
|
+
* Some CSS [at-rules](https://css-tricks.com/the-at-rules-of-css/) require variable interpolation even when the custom identifier value is not a string.
|
|
439
|
+
*
|
|
440
|
+
* @see [dollar-variable-no-missing-interpolation](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-no-missing-interpolation)
|
|
441
|
+
*/
|
|
442
|
+
'scss/dollar-variable-no-missing-interpolation': DollarVariableNoMissingInterpolationOptions
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Disallow assignment to namespaced variables.
|
|
446
|
+
*
|
|
447
|
+
* @see [dollar-variable-no-namespaced-assignment](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-no-namespaced-assignment)
|
|
448
|
+
*/
|
|
449
|
+
'scss/dollar-variable-no-namespaced-assignment': DollarVariableNoNamespacedAssignmentOptions
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Specify a pattern for Sass-like variables.
|
|
453
|
+
*
|
|
454
|
+
* @see [dollar-variable-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-pattern)
|
|
455
|
+
*/
|
|
456
|
+
'scss/dollar-variable-pattern': DollarVariablePatternOptions
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Require or disallow an empty line before `//`-comments.
|
|
460
|
+
*
|
|
461
|
+
* This rule only works with SCSS-like [single-line comments](https://sass-lang.com/documentation/syntax/comments) and ignores:
|
|
462
|
+
* - comments that are the very first nodes in a file;
|
|
463
|
+
* - CSS comments (`\/* *\/`);
|
|
464
|
+
* - comments that are on the same line as some non-comment code (inline comments).
|
|
465
|
+
*
|
|
466
|
+
* @see [double-slash-comment-empty-line-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/double-slash-comment-empty-line-before)
|
|
467
|
+
*/
|
|
468
|
+
'scss/double-slash-comment-empty-line-before': DoubleSlashCommentEmptyLineBeforeOptions
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Require or disallow `//`-comments to be inline comments.
|
|
472
|
+
*
|
|
473
|
+
* An inline comment in terms of this rule is a comment that is placed on the same line with any other code, either before or after it.
|
|
474
|
+
*
|
|
475
|
+
* This rule only works with SCSS-like [single-line comments](https://sass-lang.com/documentation/syntax/comments) and ignores CSS comments (`\/* *\/`).
|
|
476
|
+
*
|
|
477
|
+
* @see [double-slash-comment-inline](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/double-slash-comment-inline)
|
|
478
|
+
*/
|
|
479
|
+
'scss/double-slash-comment-inline': DoubleSlashCommentInlineOptions
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Require or disallow whitespace after the `//` in `//`-comments
|
|
483
|
+
*
|
|
484
|
+
* This rule only works with SCSS-like [single-line comments](https://sass-lang.com/documentation/syntax/comments) and ignores CSS comments (`\/* *\/`).
|
|
485
|
+
*
|
|
486
|
+
* Any number of slashes are allowed at the beginning of the comment. So `/// comment` is treated the same way as `// comment`.
|
|
487
|
+
*
|
|
488
|
+
* Note that a newline is not possible as a whitespace in terms of this rule as `//` - comments are intended to be single - line.
|
|
489
|
+
*
|
|
490
|
+
* @see [double-slash-comment-whitespace-inside](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/double-slash-comment-whitespace-inside)
|
|
491
|
+
*/
|
|
492
|
+
'scss/double-slash-comment-whitespace-inside': DoubleSlashCommentWhitespaceInsideOptions
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Disallow interpolation in `calc()`, `clamp()`, `min()`, and `max()` functions.
|
|
496
|
+
*
|
|
497
|
+
* Since the release of [first-class `calc()`](https://sass-lang.com/documentation/values/calculations/),
|
|
498
|
+
* calculation functions `calc()`, `clamp()`, `min()`, and `max()` accept variables
|
|
499
|
+
* nd function calls as arguments. This rule disallows interpolation to avoid
|
|
500
|
+
* extra verbose or even invalid CSS.
|
|
501
|
+
*
|
|
502
|
+
* @see [function-calculation-no-interpolation](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-calculation-no-interpolation)
|
|
503
|
+
*/
|
|
504
|
+
'scss/function-calculation-no-interpolation': FunctionCalculationNoInterpolationOptions
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Encourage the use of the [scale-color](https://sass-lang.com/documentation/modules/color#scale-color) over:
|
|
508
|
+
*
|
|
509
|
+
* - [darken](https://sass-lang.com/documentation/modules/color#darken)
|
|
510
|
+
* - [desaturate](https://sass-lang.com/documentation/modules/color#desaturate)
|
|
511
|
+
* - [fade-in](https://sass-lang.com/documentation/modules/color#fade-in)
|
|
512
|
+
* - [fade-out](https://sass-lang.com/documentation/modules/color#fade-out)
|
|
513
|
+
* - [lighten](https://sass-lang.com/documentation/modules/color#lighten)
|
|
514
|
+
* - [opacify](https://sass-lang.com/documentation/modules/color#opacify)
|
|
515
|
+
* - [saturate](https://sass-lang.com/documentation/modules/color#saturate)
|
|
516
|
+
* - [transparentize](https://sass-lang.com/documentation/modules/color#transparentize)
|
|
517
|
+
*
|
|
518
|
+
* @see [function-color-relative](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-color-relative)
|
|
519
|
+
*/
|
|
520
|
+
'scss/function-color-relative': FunctionColorRelativeOptions
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Specify a list of disallowed functions.
|
|
524
|
+
*
|
|
525
|
+
* @see [function-disallowed-list](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-disallowed-list)
|
|
526
|
+
*/
|
|
527
|
+
'scss/function-disallowed-list': FunctionDisallowedListOptions
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Disallow unknown functions. Should be used **instead of** Stylelint's [function-no-unknown](https://stylelint.io/user-guide/rules/function-no-unknown).
|
|
531
|
+
*
|
|
532
|
+
* This rule is basically a wrapper around the mentioned core rule. You must disable Stylelint's core rule to make this rule work:
|
|
533
|
+
* ```json
|
|
534
|
+
* {
|
|
535
|
+
* "rules": {
|
|
536
|
+
* "function-no-unknown": null,
|
|
537
|
+
* "scss/function-no-unknown": true
|
|
538
|
+
* }
|
|
539
|
+
* }
|
|
540
|
+
* ```
|
|
541
|
+
*
|
|
542
|
+
* @see [function-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-no-unknown)
|
|
543
|
+
*/
|
|
544
|
+
'scss/function-no-unknown': FunctionNoUnknownOptions
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Disallow quoted strings inside the [quote function](https://sass-lang.com/documentation/modules/string#quote)
|
|
548
|
+
*
|
|
549
|
+
* @see [function-quote-no-quoted-strings-inside](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-quote-no-quoted-strings-inside)
|
|
550
|
+
*/
|
|
551
|
+
'scss/function-quote-no-quoted-strings-inside': FunctionQuoteNoQuotedStringsInsideOptions
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Disallow unquoted strings inside the [unquote function](https://sass-lang.com/documentation/modules/string#unquote)
|
|
555
|
+
*
|
|
556
|
+
* @see [function-unquote-no-unquoted-strings-inside](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/function-unquote-no-unquoted-strings-inside)
|
|
557
|
+
*/
|
|
558
|
+
'scss/function-unquote-no-unquoted-strings-inside': FunctionUnquoteNoUnquotedStringsInsideOptions
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Disallow leading underscore in partial names in `@import`, `@use`, `@forward`,
|
|
562
|
+
* and [`meta.load-css`](https://sass-lang.com/documentation/modules/meta/#load-css) `$url` parameter.
|
|
563
|
+
*
|
|
564
|
+
* The rule ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
565
|
+
* - If the file’s extension is `.css`.
|
|
566
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
567
|
+
* - If the filename is a `url()`.
|
|
568
|
+
* - If the `@import` has any media queries.
|
|
569
|
+
*
|
|
570
|
+
* @see [load-no-partial-leading-underscore](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/load-no-partial-leading-underscore)
|
|
571
|
+
*/
|
|
572
|
+
'scss/load-no-partial-leading-underscore': LoadNoPartialLeadingUnderscoreOptions
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Require quoted keys in Sass maps.
|
|
576
|
+
*
|
|
577
|
+
* @see [map-keys-quotes](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/map-keys-quotes)
|
|
578
|
+
*/
|
|
579
|
+
'scss/map-keys-quotes': MapKeysQuotesOptions
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Require a media feature value be a `$`-variable or disallow `$`-variables in media feature values.
|
|
583
|
+
*
|
|
584
|
+
* @see [media-feature-value-dollar-variable](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/media-feature-value-dollar-variable)
|
|
585
|
+
*/
|
|
586
|
+
'scss/media-feature-value-dollar-variable': MediaFeatureValueDollarVariableOptions
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Disallow dollar variables within a stylesheet.
|
|
590
|
+
*
|
|
591
|
+
* @see [no-dollar-variables](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-dollar-variables)
|
|
592
|
+
*/
|
|
593
|
+
'scss/no-dollar-variables': NoDollarVariablesOptions
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Disallow duplicate dollar variables within a stylesheet.
|
|
597
|
+
*
|
|
598
|
+
* @see [no-duplicate-dollar-variables](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-duplicate-dollar-variables)
|
|
599
|
+
*/
|
|
600
|
+
'scss/no-duplicate-dollar-variables': NoDuplicateDollarVariablesOptions
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Disallow duplicate mixins within a stylesheet.
|
|
604
|
+
*
|
|
605
|
+
* @see [no-duplicate-mixins](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-duplicate-mixins)
|
|
606
|
+
*/
|
|
607
|
+
'scss/no-duplicate-mixins': NoDuplicateMixinsOptions
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Disallows the use of global function names, as these global functions are now located inside built-in Sass modules.
|
|
611
|
+
*
|
|
612
|
+
* A full list of disallowed names (and their alternatives) is located [here](https://github.com/sass/sass/blob/main/accepted/module-system.md#built-in-modules-1)
|
|
613
|
+
*
|
|
614
|
+
* It is recommended to use the [Sass migrator](https://sass-lang.com/documentation/cli/migrator) to change these global function names automatically.
|
|
615
|
+
*
|
|
616
|
+
* @see [no-global-function-names](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/no-global-function-names)
|
|
617
|
+
*/
|
|
618
|
+
'scss/no-global-function-names': NoGlobalFunctionNamesOptions
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Disallow linebreaks after Sass operators.
|
|
622
|
+
*
|
|
623
|
+
* This rule checks math operators (`+`, `-`, `/`, `*`, `%`) and comparison operators (`>`, `<`, `!=`, `==`, `>=`, `<=`).
|
|
624
|
+
*
|
|
625
|
+
* Not all symbols that correspond to math operators are actually considered operators by Sass. Some of the exceptions are:
|
|
626
|
+
*
|
|
627
|
+
* - `+` and `-` as signs before values;
|
|
628
|
+
* - `+` and `-` as signs in [space-delimited lists](https://sass-lang.com/documentation/operators/string);
|
|
629
|
+
* - `-` as part of [a string](https://sass-lang.com/documentation/operators/string) or [a Sass identifier](https://sass-lang.com/documentation/operators/numeric#unary-operators), e.g. a variable;
|
|
630
|
+
* - `/` as a CSS delimiter in property values like `font: 10px/1.2 Arial;` ([read more](https://sass-lang.com/documentation/operators/numeric#slash-separated-values)).
|
|
631
|
+
*
|
|
632
|
+
* For more details refer to [Sass official documentation](https://sass-lang.com/documentation). An online Sass compiler - [Sassmeister](https://www.sassmeister.com/) - could also come in handy.
|
|
633
|
+
*
|
|
634
|
+
* @see [operator-no-newline-after](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/operator-no-newline-after)
|
|
635
|
+
*/
|
|
636
|
+
'scss/operator-no-newline-after': OperatorNoNewlineAfterOptions
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Disallow linebreaks before Sass operators.
|
|
640
|
+
*
|
|
641
|
+
* This rule checks math operators (`+`, `-`, `/`, `*`, `%`) and comparison operators (`>`, `<`, `!=`, `==`, `>=`, `<=`).
|
|
642
|
+
*
|
|
643
|
+
* Not all symbols that correspond to math operators are actually considered operators by Sass. Some of the exceptions are:
|
|
644
|
+
*
|
|
645
|
+
* - `+` and `-` as signs before values;
|
|
646
|
+
* - `+` and `-` as signs in [space-delimited lists](https://sass-lang.com/documentation/operators/string);
|
|
647
|
+
* - `-` as part of [a string](https://sass-lang.com/documentation/operators/string) or [a Sass identifier](https://sass-lang.com/documentation/operators/numeric#unary-operators), e.g. a variable;
|
|
648
|
+
* - `/` as a CSS delimiter in property values like `font: 10px/1.2 Arial;` ([read more](https://sass-lang.com/documentation/operators/numeric#slash-separated-values)).
|
|
649
|
+
*
|
|
650
|
+
* For more details refer to [Sass official documentation](https://sass-lang.com/documentation). An online Sass compiler - [Sassmeister](https://www.sassmeister.com/) - could also come in handy.
|
|
651
|
+
*
|
|
652
|
+
* @see [operator-no-newline-before](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/operator-no-newline-before)
|
|
653
|
+
*/
|
|
654
|
+
'scss/operator-no-newline-before': OperatorNoNewlineBeforeOptions
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Disallow unspaced operators in Sass operations.
|
|
658
|
+
*
|
|
659
|
+
* This rule checks math operators (`+`, `-`, `/`, `*`, `%`) and comparison operators (`>`, `<`, `!=`, `==`, `>=`, `<=`).
|
|
660
|
+
*
|
|
661
|
+
* Not all symbols that correspond to math operators are actually considered operators by Sass. Some of the exceptions are:
|
|
662
|
+
*
|
|
663
|
+
* - `+` and `-` as signs before values;
|
|
664
|
+
* - `+` and `-` as signs in [space-delimited lists](https://sass-lang.com/documentation/operators/string);
|
|
665
|
+
* - `-` as part of [a string](https://sass-lang.com/documentation/operators/string) or [a Sass identifier](https://sass-lang.com/documentation/operators/numeric#unary-operators), e.g. a variable;
|
|
666
|
+
* - `/` as a CSS delimiter in property values like `font: 10px/1.2 Arial;` ([read more](https://sass-lang.com/documentation/operators/numeric#slash-separated-values)).
|
|
667
|
+
*
|
|
668
|
+
* For more details refer to [Sass official documentation](https://sass-lang.com/documentation/file.SASS_REFERENCE.html). An online Sass compiler - [Sassmeister](https://www.sassmeister.com/) - could also come in handy.
|
|
669
|
+
*
|
|
670
|
+
* @see [operator-no-unspaced](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/operator-no-unspaced)
|
|
671
|
+
*/
|
|
672
|
+
'scss/operator-no-unspaced': OperatorNoUnspacedOptions
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Disallow non-CSS `@import`s in partial files.
|
|
676
|
+
*
|
|
677
|
+
* The rule skips CSS files (doesn't report any `@import`s in them).
|
|
678
|
+
*
|
|
679
|
+
* The rule also ignores [cases](https://sass-lang.com/documentation/at-rules/import) when Sass considers an `@import` command just a plain CSS import:
|
|
680
|
+
*
|
|
681
|
+
* - If the file’s extension is `.css`.
|
|
682
|
+
* - If the filename begins with `http://` (or any other protocol).
|
|
683
|
+
* - If the filename is a `url()`.
|
|
684
|
+
* - If the `@import` has any media queries.
|
|
685
|
+
*
|
|
686
|
+
* @see [partial-no-import](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/partial-no-import)
|
|
687
|
+
*/
|
|
688
|
+
'scss/partial-no-import': PartialNoImportOptions
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Specify a pattern for `%`-placeholders.
|
|
692
|
+
*
|
|
693
|
+
* @see [percent-placeholder-pattern](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/percent-placeholder-pattern)
|
|
694
|
+
*/
|
|
695
|
+
'scss/percent-placeholder-pattern': PercentPlaceholderPatternOptions
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Require or disallow nesting of combinators in selectors
|
|
699
|
+
*
|
|
700
|
+
* @see [selector-nest-combinators](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-nest-combinators)
|
|
701
|
+
*/
|
|
702
|
+
'scss/selector-nest-combinators': SelectorNestCombinatorsOptions
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Disallow unknown properties. Should be used instead of Stylelint's [property-no-unknown](https://stylelint.io/user-guide/rules/property-no-unknown).
|
|
706
|
+
*
|
|
707
|
+
* This rule considers properties defined in the [CSS Specifications and browser specific properties](https://github.com/betit/known-css-properties#source) to be known.
|
|
708
|
+
*
|
|
709
|
+
* This rule ignores:
|
|
710
|
+
*
|
|
711
|
+
* - variables (`$sass`, `@less`, `--custom-property`)
|
|
712
|
+
* - vendor-prefixed properties (e.g., `-moz-align-self`, `-webkit-align-self`)
|
|
713
|
+
*
|
|
714
|
+
* Use option `checkPrefixed` described below to turn on checking of vendor-prefixed properties.
|
|
715
|
+
*
|
|
716
|
+
* @see [property-no-unknown](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/property-no-unknown)
|
|
717
|
+
*/
|
|
718
|
+
'scss/property-no-unknown': PropertyNoUnknownOptions
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Disallow redundant nesting selectors (`&`).
|
|
722
|
+
*
|
|
723
|
+
* @see [selector-no-redundant-nesting-selector](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-no-redundant-nesting-selector)
|
|
724
|
+
*/
|
|
725
|
+
'scss/selector-no-redundant-nesting-selector': SelectorNoRedundantNestingSelectorOptions
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Disallow union class names with the parent selector (`&`).
|
|
729
|
+
*
|
|
730
|
+
* @see [selector-no-union-class-name](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/selector-no-union-class-name)
|
|
731
|
+
*/
|
|
732
|
+
'scss/selector-no-union-class-name': SelectorNoUnionClassNameOptions
|
|
733
|
+
}
|