stylelint-scss
Advanced tools
Comparing version 6.3.2 to 6.4.0
{ | ||
"name": "stylelint-scss", | ||
"description": "A collection of SCSS-specific rules for Stylelint", | ||
"version": "6.3.2", | ||
"version": "6.4.0", | ||
"author": "Krister Kari", | ||
@@ -16,3 +16,3 @@ "repository": "stylelint-scss/stylelint-scss", | ||
"dependencies": { | ||
"known-css-properties": "^0.31.0", | ||
"known-css-properties": "^0.34.0", | ||
"postcss-media-query-parser": "^0.2.3", | ||
@@ -29,9 +29,9 @@ "postcss-resolve-nested-selector": "^0.1.1", | ||
"jest": "^29.7.0", | ||
"jest-preset-stylelint": "^7.0.0", | ||
"jest-preset-stylelint": "^7.1.0", | ||
"lint-staged": "^14.0.1", | ||
"np": "^10.0.5", | ||
"postcss": "^8.4.35", | ||
"np": "^10.0.6", | ||
"postcss": "^8.4.39", | ||
"postcss-less": "^6.0.0", | ||
"postcss-scss": "^4.0.9", | ||
"prettier": "^3.2.5", | ||
"prettier": "^3.3.2", | ||
"stylelint": "^16.6.1" | ||
@@ -38,0 +38,0 @@ }, |
@@ -83,3 +83,2 @@ # stylelint-scss | ||
- [`at-import-partial-extension`](./src/rules/at-import-partial-extension/README.md): Require or disallow extension in `@import` commands (Autofixable). | ||
- [`at-import-partial-extension-allowed-list`](./src/rules/at-import-partial-extension-allowed-list/README.md): Specify a list of allowed file extensions for partial names in `@import` commands. | ||
@@ -187,2 +186,3 @@ - [`at-import-partial-extension-disallowed-list`](./src/rules/at-import-partial-extension-disallowed-list/README.md): Specify a list of disallowed file extensions for partial names in `@import` commands. | ||
- [`load-no-partial-leading-underscore`](./src/rules/load-no-partial-leading-underscore/README.md): Disallow leading underscore in partial names in `@import`, `@use`, `@forward`, and [`meta.load-css`](https://sass-lang.com/documentation/modules/meta/#load-css) `$url` parameter. | ||
- [`load-partial-extension`](./src/rules/load-partial-extension/README.md): Require or disallow extension in `@import`, `@use`, `@forward`, and [`meta.load-css`] commands (Autofixable). | ||
@@ -202,2 +202,3 @@ ### General / Sheet | ||
- [`at-import-no-partial-leading-underscore`](https://github.com/stylelint-scss/stylelint-scss/blob/v5.2.1/src/rules/at-import-no-partial-leading-underscore/README.md): Disallow leading underscore in partial names in `@import`. | ||
- [`at-import-partial-extension`](https://github.com/stylelint-scss/stylelint-scss/blob/v6.3.0/src/rules/at-import-partial-extension/README.md): Require or disallow extension in `@import` commands. | ||
- [`at-import-partial-extension-blacklist`](https://github.com/stylelint-scss/stylelint-scss/blob/v6.1.0/src/rules/at-import-partial-extension-blacklist/README.md): Specify a blacklist of disallowed file extensions for partial names in `@import` commands. | ||
@@ -204,0 +205,0 @@ - [`at-import-partial-extension-whitelist`](https://github.com/stylelint-scss/stylelint-scss/blob/v6.1.0/src/rules/at-import-partial-extension-whitelist/README.md): Specify a whitelist of allowed file extensions for partial names in `@import` commands. |
@@ -17,3 +17,4 @@ "use strict"; | ||
const meta = { | ||
url: ruleUrl(ruleName) | ||
url: ruleUrl(ruleName), | ||
deprecated: true | ||
}; | ||
@@ -51,2 +52,12 @@ | ||
result.warn( | ||
"'at-import-partial-extension has been deprecated, " + | ||
"and will be removed in '7.0'. Use 'load-partial-extension' instead.", | ||
{ | ||
stylelintType: "deprecation", | ||
stylelintReference: | ||
"https://github.com/stylelint-scss/stylelint-scss/blob/v6.3.0/src/rules/at-import-partial-extension/README.md" | ||
} | ||
); | ||
root.walkAtRules("import", atRule => { | ||
@@ -53,0 +64,0 @@ const paths = atRule.params |
@@ -18,2 +18,3 @@ "use strict"; | ||
"load-no-partial-leading-underscore": require("./load-no-partial-leading-underscore"), | ||
"load-partial-extension": require("./load-partial-extension"), | ||
"at-import-partial-extension-allowed-list": require("./at-import-partial-extension-allowed-list"), | ||
@@ -20,0 +21,0 @@ "at-import-partial-extension-blacklist": require("./at-import-partial-extension-blacklist"), |
@@ -11,3 +11,5 @@ "use strict"; | ||
const messages = utils.ruleMessages(ruleName, { | ||
expected: "Unexpected @import in a partial" | ||
expected: "Unexpected @import in a partial", | ||
expectedActualFile: | ||
"This rule won't work if linting in a code string without an actual file" | ||
}); | ||
@@ -30,5 +32,10 @@ | ||
if (root.source.input.file === undefined || !root.source.input.file) { | ||
result.warn( | ||
"The 'partial-no-import' rule won't work if linting in a code string without an actual file." | ||
); | ||
utils.report({ | ||
message: messages.expectedActualFile, | ||
node: root, | ||
index: 1, | ||
endIndex: 2, | ||
result, | ||
ruleName | ||
}); | ||
@@ -35,0 +42,0 @@ return; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
302246
122
8731
405
- Removedknown-css-properties@0.31.0(transitive)
Updatedknown-css-properties@^0.34.0