Skip to content

Commit 8cb4fde

Browse files
author
Florian Uhlig
committed
feat(scss): add new rules
- replace `scss/at-import-partial-extension` (deprecated) with `scss/load-partial-extension` - add new rules (not enabled)
1 parent c2ac405 commit 8cb4fde

File tree

1 file changed

+8
-2
lines changed
  • packages/stylelint-config-copilot-scss

1 file changed

+8
-2
lines changed

packages/stylelint-config-copilot-scss/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ module.exports = {
103103
// Specify list of allowed file extensions for partial names in @import commands.
104104
'scss/at-import-partial-extension-allowed-list': null,
105105

106-
// Require or disallow extension in @import commands.
107-
'scss/at-import-partial-extension': null,
106+
// Require or disallow extension in @import, @use, @forward, and [meta.load-css] commands.
107+
'scss/load-partial-extension': null,
108108

109109
/* ------------------------------------*\
110110
#AT-MIXINS
@@ -130,6 +130,9 @@ module.exports = {
130130
// Specify a pattern for Sass/SCSS-like mixin names.
131131
'scss/at-mixin-pattern': null,
132132

133+
// Disallow risky nesting selectors within a mixin.
134+
'scss/at-mixin-no-risky-nesting-selector': null,
135+
133136
/* ------------------------------------*\
134137
#AT-RULE
135138
\*------------------------------------ */
@@ -311,6 +314,9 @@ module.exports = {
311314
// Disallow nested properties of the same "namespace" be divided into multiple groups.
312315
'scss/declaration-nested-properties-no-divided-groups': true,
313316

317+
// Disallow unknown values for properties within declarations.
318+
'scss/declaration-property-value-no-unknown': true,
319+
314320
/* ------------------------------------*\
315321
#MEDIA-FEATURE
316322
\*------------------------------------ */

0 commit comments

Comments
 (0)