Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
feat(eslint-plugin): add a default-off option to autofix remove unused imports#11243
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
nayounsang wants to merge24 commits intotypescript-eslint:mainChoose a base branch fromnayounsang:auto-unused
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes fromall commits
Commits
Show all changes
24 commits Select commitHold shift + click to select a range
e5394b2
test: add testcase
nayounsange339973
feat: test successful logic
nayounsang7fc5d69
chore: generate schema
nayounsang7b06e7c
chore: Revert "test: add testcase"
nayounsanga2dce5f
chore: remove uninteded code changes
nayounsang855acdf
refactor: simplify conditional statements to increase converage
nayounsang233fb1e
test: add testacase autofixer should do nothing in import-autofix fea…
nayounsang622aaf0
test: add more testcases
nayounsang122509f
refactor: remove duplicate condition validate
nayounsang556ae92
test: add more test case
nayounsang6d35a71
chore: logic that is currently difficult to implement is left as TODO
nayounsang440d112
Merge branch 'main' into auto-unused
nayounsangd9f1609
chore: add line for test category
nayounsang11ac4fa
fix: remove type casting and support TSImportEqulasDeclaration node
nayounsang633d2c8
test: simplify test case with noFormat
nayounsang9f76441
fix: remove format-related logic
nayounsang99699fc
Merge branch 'main' into auto-unused
nayounsang2c8b740
feat: add suggestion for enableAUtofixRemoval
nayounsang9a15d49
test: add suggestion effected by import statement
nayounsang6de9050
test: add suggestion for no-unused-vars-eslint test
nayounsanga177e5c
feat: remove all unused specifers at once if no used specifers in decl
nayounsang1a05465
test: add test
nayounsang5662583
Merge branch 'main' into auto-unused
nayounsang90c2d9a
chore: resolve real conflict
nayounsangFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
165 changes: 164 additions & 1 deletionpackages/eslint-plugin/src/rules/no-unused-vars.ts
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
12 changes: 11 additions & 1 deletionpackages/eslint-plugin/tests/rules/no-unused-vars/no-unused-vars-eslint.test.ts
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.
Uh oh!
There was an error while loading.Please reload this page.
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.