Skip to content

Conversation

@rafaelss95
Copy link
Contributor

Fixes #3933.

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @rafaelss95!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

@codecov
Copy link

codecov bot commented Oct 2, 2021

Codecov Report

Merging #3947 (90b7f39) into master (02c6ff3) will increase coverage by 0.81%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3947      +/-   ##
==========================================
+ Coverage   92.70%   93.51%   +0.81%     
==========================================
  Files         331      151     -180     
  Lines       11637     8145    -3492     
  Branches     3290     2583     -707     
==========================================
- Hits        10788     7617    -3171     
+ Misses        371      167     -204     
+ Partials      478      361     -117     
Flag Coverage Δ
unittest 93.51% <100.00%> (+0.81%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...s/eslint-plugin/src/rules/no-restricted-imports.ts 91.80% <100.00%> (+0.27%) ⬆️
packages/scope-manager/src/lib/lib.ts
...ges/typescript-estree/src/create-program/shared.ts
...ages/scope-manager/src/lib/es2018.asynciterable.ts
packages/scope-manager/src/lib/es2021.full.ts
packages/experimental-utils/src/json-schema.ts
packages/scope-manager/src/lib/es2019.full.ts
packages/scope-manager/src/lib/es2015.symbol.ts
packages/scope-manager/src/referencer/Reference.ts
...ages/scope-manager/src/lib/esnext.asynciterable.ts
... and 171 more

@bradzacher bradzacher added the bug Something isn't working label Oct 3, 2021
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

thanks for fixing this!

@bradzacher bradzacher changed the title fix(eslint-plugin): [no-restricted-imports] ignore when no options given fix(eslint-plugin): [no-restricted-imports] fix crash when no options given Oct 3, 2021
@bradzacher bradzacher merged commit edaa3c1 into typescript-eslint:master Oct 3, 2021
@rafaelss95 rafaelss95 deleted the fix/3933 branch October 3, 2021 23:24
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[@typescript-eslint/no-restricted-imports] Cannot convert undefined or null to object

2 participants