-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
feat: Support custom severity when reporting unused disable directives #17212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
8518c04
feat: Support custom severity when reporting unused disable directives
bmish 9d70807
Merge branch 'main' into rfc-100-part1
bmish 3e3d482
fix test
bmish 3cb8616
remove change to conf/default-cli-options.js
bmish 4b8ce60
improve schema
bmish d185024
wip
bmish 6e4cb25
Merge branch 'main' into rfc-100-part1
bmish a1295c0
remove reportUnusedDisableDirectives from processOptions() in favor o…
bmish 6f2bd3c
revert changes to lib/eslint/eslint.js and fix more tests
bmish 7dd444b
remove old type
bmish 82ebdd3
more tests
bmish 964f270
fix comment for ParsedCLIOptions
bmish 56aa528
remove unnecessary exception
bmish 7294056
revert comment
bmish c774f31
remove number severity
bmish 9f2dc93
fix translateOptions and tests
bmish abf2ebc
revert comment
bmish 2106b44
Update lib/cli.js
bmish 9818046
Update lib/options.js
bmish c6a23bf
Update docs/src/use/command-line-interface.md
bmish 321de72
Update lib/cli-engine/cli-engine.js
bmish 9743273
Update lib/cli-engine/cli-engine.js
bmish de86902
Update lib/shared/types.js
bmish 28341c4
Update lib/shared/types.js
bmish b4ab419
add arg type to doc
bmish f0e89d4
mention enable
bmish 4ca4f69
warn with old option
bmish e7dba74
remove old comment
bmish 13c456d
revert change to tests/lib/eslint/eslint.js
bmish fa35e5f
add test for removed option
bmish 8951732
revert copy change
bmish 186408d
switch several tests from boolean for reportUnusedDisableDirectives t…
bmish 7c88af0
improve tests
bmish 9fd8d6d
use reportUnusedDisableDirectives: error in eslint-config-eslint
bmish 3c88633
support severity numbers
bmish b493bbb
refactor
bmish cadb6d5
revert newline change
bmish 67cfb8f
refactor and fix tests
bmish 7f8d0a8
refactor
bmish ae363bf
cleanup
bmish 30e3f30
cleanup
bmish eb25551
use normalizeSeverityToString in another place
bmish 68a9b83
tweak
bmish dd9861c
attempt to avoid test pollution
bmish ff813a1
tweak test name
bmish 194c649
remove boolean handling from normalizeSeverityToString
bmish 7fe6ef0
Update docs/src/use/command-line-interface.md
bmish 62ab43c
Update docs/src/use/command-line-interface.md
bmish e43952e
Update docs/src/use/command-line-interface.md
bmish 9874ae5
cleanup
bmish bec28fb
normalize flat config reportUnusedDisableDirectives to number
bmish 8c9f33f
Update lib/options.js
bmish 43ad9fd
Update lib/cli.js
bmish 462bc31
Update lib/cli.js
bmish 54cc4a3
remove unused reportUnusedDisableDirectives property
bmish 691b142
run CLI tests for both flat and eslintrc
bmish 4b3d2d8
Update tests/lib/eslint/flat-eslint.js
bmish f9b60f0
Update tests/lib/eslint/flat-eslint.js
bmish ba288e6
Update docs/src/use/configure/rules.md
bmish cd36dd7
address pr feedback
bmish ddf9aa2
Merge branch 'main' into rfc-100-part1
bmish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.