- 
                Notifications
    
You must be signed in to change notification settings  - Fork 24.9k
 
          chore: specify eol config in .prettierrc as lf
          #36884
        
          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
          
 Feel free to manually trigger the tests if necessary. P.S. Save Energy! 🌏🤗  | 
    
| 
           ping @cortinico :) Edit: P.S. Why we don't yet skip CI (both for gh PRs and for commits pushed through fb-internal), for DOC (non core code) changes?  | 
    
| 
           /rebase  | 
    
          
 We generally don't want to skip CI as we don't have much docs or other non code content in this repo. Your change also needs to run on CI as, albeit minimal, it could break internal Meta setup so we need to run CI regardless.  | 
    
57bca70    to
    30d0e7d      
    Compare
  
    | 
           Sure.  | 
    
          
 Yes please remove it (I'm surprised it worked actually)  | 
    
30d0e7d    to
    52be10c      
    Compare
  
    - we've already specified the `eol` config as `lf` in `.editorconfig` - this diff syncs same config for prettier as well
52be10c    to
    378b3fe      
    Compare
  
    
          
 Base commit: 3b4037e  | 
    
| 
           Checking at documentation, seems like this is not needed as the default value for   | 
    
          
 Yeah I had checked that earlier, but, vscode on Windows 11 still defaults to  Edit: Another approach I know is having   | 
    
| 
           @cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.  | 
    
| 
           @cortinico merged this pull request in 4ad2fc8.  | 
    
Summary: - Although we have `.editorconfig`, on Windows machines most of the times the IDEs default to `CRLF` as default EOL config - we've already specified the `eol` config as `lf` in `.editorconfig` at root level - this diff syncs same config for prettier as well >NOTE: Using `[skip ci]` as it's non code change and is tested for formatting. ## Changelog: [GENERAL] [CHANGED] - Specify `eol` config in `.prettierrc` as `lf` at the root level Pull Request resolved: facebook#36884 Test Plan: - `yarn run format` --> _nothing should change_ Reviewed By: christophpurrer Differential Revision: D45056330 Pulled By: cortinico fbshipit-source-id: 166cbba04728e04521de58144abf0576730c8edd
Summary: - Although we have `.editorconfig`, on Windows machines most of the times the IDEs default to `CRLF` as default EOL config - we've already specified the `eol` config as `lf` in `.editorconfig` at root level - this diff syncs same config for prettier as well >NOTE: Using `[skip ci]` as it's non code change and is tested for formatting. ## Changelog: [GENERAL] [CHANGED] - Specify `eol` config in `.prettierrc` as `lf` at the root level Pull Request resolved: facebook#36884 Test Plan: - `yarn run format` --> _nothing should change_ Reviewed By: christophpurrer Differential Revision: D45056330 Pulled By: cortinico fbshipit-source-id: 166cbba04728e04521de58144abf0576730c8edd
Summary:
.editorconfig, on Windows machines most of the times the IDEs default toCRLFas default EOL configeolconfig aslfin.editorconfigat root levelChangelog:
[GENERAL] [CHANGED] - Specify
eolconfig in.prettierrcaslfat the root levelTest Plan:
yarn run format--> nothing should change