Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement rfc 2021-suppression-support (#15459)
* feat: implement rfc 2021-suppression-support * fix --report-unused-disable-directives not working in some cases. * modify the JSDoc comments of applyDirectives(). * fix not working with processors * update the return type of _verifyXX methods * fix the issue that only string after the first -- is treated as justification * fix eslint-disable-next-line not working after /* eslint-disable */ * refactor applyDirectives() to process usedDisableDirectives properly * fix another unused-disable-directive issue, and add more test cases to cover * apply the simpler implementation of applyDirective() * update doc * filter out suppressedMessages in getErrorResults() * add meta for rules in suppressedMessages for getRulesMetaForResults() * update ESLint.getErrorResults() to keep the current behavior
- Loading branch information
1 parent
5769cc2
commit 5d60812
Showing
11 changed files
with
2,277 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.