- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.5k
          [New] no-unresolved: add caseSensitiveStrict option
          #1262
        
          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
Conversation
53ce485    to
    f5483d2      
    Compare
  
    f5483d2    to
    fca6308      
    Compare
  
    | @benmosher @ljharb Have a chance to take a look? The changes are behind the option, no breaking changes are expected. | 
| Ah interesting, if just plain  But my recommendation would be to make  | 
| Ohhh wait sorry I remember now. This cwd behavior was added because people’s case-insensitive terminal was throwing for all resolves. Hmm... | 
| Feels like any explicit path segment should be checked, regardless of the CWD. Not sure how exactly that would work though. | 
| @benmosher right, that's how  | 
| @sergei-startsev sorry for the long delay here. if you'd mind rebasing, i'll be happy to take a fresh look. | 
acb20e5    to
    aec4328      
    Compare
  
    aec4328    to
    b5c6c9e      
    Compare
  
    | @ljharb The PR has been rebased, take a look. | 
| @sergei-startsev what happens if someone sets  Maybe it would make more sense if the option was something that doesn't imply it's a superset of  | 
b5c6c9e    to
    b06a968      
    Compare
  
    no-unresolved, add caseSensitiveStrict optionno-unresolved: add caseSensitiveStrict option
      b06a968    to
    308e5a5      
    Compare
  
    | @ljharb Good point, rethought  | 
308e5a5    to
    3b2d67e      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
| @ljharb Do you plan to merge the PR yourself? | 
| @sergei-startsev yep! i'm holding off because i want to find a fix for #2199, so i can release a v2.24 patch release, before merging this in for a v2.25. | 
| EOL status of a platform is irrelevant (node 10 is EOL also). However, the failure might be in eslint < 5, and the node version might be irrelevant. | 
| It's hard to say why they failed, I can't debug this on macOS. | 
| On my Mac, on node 16 but eslint 4, I can reproduce it - I'm happy to throw in any console logs that would help you and provide the output :-) | 
| Could we just skip these tests if eslint <5? | 
| That would be a reasonable fallback, but usually I prefer to do that when the reason they fail is "eslint < 5 can't support that syntax" rather than "we don't know why they're failing". | 
| OK, I'll try to investigate it more. In the meantime I'd appreciate it if you could provide any details about  | 
| In that test case,  In the same test case, inside  and  and it repeats as it navigates upwards until it gets to:  | 
| Well, I don't see how ESLint version can affect path resolving here... | 
| Neither do I - but actually, when I run on eslint 7 i get the same console results and the test fails too - so now I'm confused how they passed on travis at all. | 
| I'm starting to wonder if it's just not possible for a "strict" option to work on a case-insensitive file system (where it's most valuable), if there's no possible way to get a canonical capitalization? | 
| Is there an option to add a windows runner to the matrix to check it? | 
| I'm not sure how to do it in travis, but it should theoretically be possible to do it in github actions. however, i haven't set up windows support on  | 
| Well, then I don't know how to prove that it actually works 😞 I'd be glad to hear any ideas. Here's what I have on windows (tests are always green):  | 
e07f484    to
    3b8c881      
    Compare
  
    | @ljharb Travis hasn't run again –  | 
| woof, those things run out quick. i'll ping travis and ask for more. | 
3b8c881    to
    f9c5a59      
    Compare
  
    | @sergei-startsev travis should be working again; i've rebased this branch so you can see the logs. | 
| Codecov Report
 @@            Coverage Diff             @@
##             main    #1262      +/-   ##
==========================================
+ Coverage   84.27%   84.28%   +0.01%     
==========================================
  Files          93       93              
  Lines        2969     2971       +2     
  Branches      879      881       +2     
==========================================
+ Hits         2502     2504       +2     
  Misses        467      467              
 Continue to review full report at Codecov. 
 | 
| @ljharb Not sure what went wrong last time, but the checks are green on all platforms now (thanks for fixing travis and adding appveyor). The commit with logs was reverted ( edited: codecov report was finally updated. | 
7aaba21    to
    35bd977      
    Compare
  
    
Fix #1259 issue. The code above should be identified as invalid by
import/no-unresolvedrule with enabledcaseSensitiveStrictoption: