Many of our rules are not 100% safe to fix code, we can add option to disable fix for every rule.
To disable fix for one rule
{
rules: {
'unicorn/better-regex': ['error, {fix: false}]
}
}
To disable fix for all rules use settings
:
{
settings: {
unicorn: {
fix: false,
}
}
}
It's not hard to implement because our rule all load by this function
eslint-plugin-unicorn/rules/utils/rule.js
Line 115 in c501243
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too