Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Allow rules to be excluded from fixes #795

Merged
merged 2 commits into from
Jan 30, 2017
Merged

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Jan 30, 2017

Closes #791

Description

This adds an option, "Disable specific rules from fixes" which allows users to specify a list of rules which should not be auto-fixed by ESLint. The option is very similar to the already-existing rulesToSilenceWhileTyping option, and uses the same strategy of setting --rule to disable the specified rules.

Notes

In the interest of simplicity and avoiding surprises, this option applies to both fixes made during saves, as well as manual fixes run from the command palette.

The spec is largely duplicated from the existing spec for fix jobs, but it didn't make sense to me to try to abstract it out into another function. That would just add some indirection for very little benefit, in my opinion.


This change is Reviewable

@IanVS IanVS requested a review from Arcanemagus January 30, 2017 02:01
Copy link
Member

@Arcanemagus Arcanemagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants