Commit 9eedb58
committed
fix(linter): false positive with negative matches in no-restricted-imports (#10976)
this was an absolute nightmare to fix.
TLDR is that `GitignoreBuilder` nor `OverrideBuilder` do not contain the flexibility or have the behaviour we want to achieve this here. They don't go through the full list of patterns (for perf reasons), but that has the caveat of meaning it does not work correctly with eslint
closes #109111 parent a4b5716 commit 9eedb58
File tree
4 files changed
+60
-21
lines changed- crates/oxc_linter
- src
- rules/eslint
- snapshots
4 files changed
+60
-21
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
Lines changed: 39 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
856 | 857 | | |
857 | 858 | | |
858 | 859 | | |
859 | | - | |
860 | | - | |
861 | | - | |
| 860 | + | |
862 | 861 | | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
| 862 | + | |
867 | 863 | | |
868 | | - | |
869 | | - | |
870 | | - | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
871 | 869 | | |
872 | | - | |
| 870 | + | |
| 871 | + | |
873 | 872 | | |
874 | | - | |
875 | | - | |
876 | | - | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
877 | 876 | | |
878 | | - | |
879 | | - | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
880 | 888 | | |
881 | 889 | | |
882 | | - | |
| 890 | + | |
883 | 891 | | |
884 | 892 | | |
885 | 893 | | |
| |||
1762 | 1770 | | |
1763 | 1771 | | |
1764 | 1772 | | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1765 | 1779 | | |
1766 | 1780 | | |
1767 | 1781 | | |
| |||
2984 | 2998 | | |
2985 | 2999 | | |
2986 | 3000 | | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
2987 | 3007 | | |
2988 | 3008 | | |
2989 | 3009 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
790 | 811 | | |
791 | 812 | | |
792 | 813 | | |
| |||
0 commit comments