Skip to content

Commit

Permalink
fix(linter): rule no-restricted-imports: improve diagnostics (#8113)
Browse files Browse the repository at this point in the history
I looked manually at the expected error messages from eslint:
https://github.com/eslint/eslint/blob/main/tests/lib/rules/no-restricted-imports.js
and updated the rule to match the message.

Almost all spans are correctly too,I think only one or two use-cases are
missing.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
Sysix and autofix-ci[bot] authored Feb 8, 2025
1 parent fcfc274 commit 28b5990
Show file tree
Hide file tree
Showing 2 changed files with 789 additions and 518 deletions.
Loading

0 comments on commit 28b5990

Please sign in to comment.