-
-
Notifications
You must be signed in to change notification settings - Fork 977
Closed
Labels
status: ready to implementis ready to be worked on by someoneis ready to be worked on by someone
Description
What is the problem you're trying to solve?
Sometimes we need find error which should not be automatically fixed, or it was automatically fixed by mistake, instead, we want to fix it manually. So if closing autofix by passing property like disableFix in secondaryOptions will be very helpful
What solution would you like to see?
Add support for closing autofix by passing property like disableFix
in secondaryOptions
in file lib/lintPostcssResult.js (stylelint version 13.13.1), line 105
stylelint/lib/lintPostcssResult.js
Lines 104 to 108 in 403248c
fix: | |
stylelintOptions.fix && | |
// Next two conditionals are temporary measures until #2643 is resolved | |
isFileFixCompatible && | |
!postcssResult.stylelint.disabledRanges[ruleName], |
ruleFunction(primaryOption, secondaryOptions, {
fix:
// Add support for closing autofix by passing property like `disableFix` in secondaryOptions
!secondaryOptions.disableFix &&
stylelintOptions.fix &&
// Next two conditionals are temporary measures until #2643 is resolved
isFileFixCompatible &&
!postcssResult.stylelint.disabledRanges[ruleName],
newline,
})(postcssRoot, postcssResult),
Metadata
Metadata
Assignees
Labels
status: ready to implementis ready to be worked on by someoneis ready to be worked on by someone