Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
partial-no-import
message to include more accurate rule name (#…
…1019) By this change, the rule message will be properly associated with the rule name. See the examples below: Before: ```sh-session $ echo '@import "file.scss"' | npx stylelint <input css ZECpLj> ✖ The 'partial-no-import' rule won't work if linting in a code string without an actual file ✖ 1 problem (1 error, 0 warnings) ``` After: ```sh-session $ echo '@import "file.scss"' | npx stylelint <input css PE6AAM> 1:2 ✖ This rule won't work if linting in a code string without an actual file scss/partial-no-import ✖ 1 problem (1 error, 0 warnings) ``` In addition, this change updates `jest-preset-stylelint` to use `testRule()` instead of `postcss`. Because `testRule()` is closer to the actual use of `stylelint` and easier to avoid any potential troubles. See https://github.com/stylelint/jest-preset-stylelint/releases/tag/7.1.0
- Loading branch information