Global default configuration with plugins #3234
              
                Unanswered
              
          
                  
                    
                      vincerubinetti
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
         | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been wasting hours of my life trying to figure this out, and fighting a host of huge unfixed bugs in this extension.
I work on many one-off, stand-alone
.js/.css/.svg/etc. files that I want to format, and cannot and will not define a whole.pretterrc,package.json, andnode_modulesfor each one.So, what I need:
package.jsonornode_modulesnext to the file being formatted.prettier-plugin-css-order.Through much trial and error, I've been at least able to find a config that won't error and prevent Prettier from formatting:
~/.prettierrc.js(no other location or filename would both be detected by the extension and not throw a config parsing error)(That plugin is definitely installed globally with npm and yarn).
But, it doesn't show up as a plugin:
I've also tried
require(errors), and~/../../../usr/local/lib/node_modules/prettier-plugin-css-orderand/usr/local/lib/node_modules/prettier-plugin-css-orderand many other variations, and plain string versions of these. I restart VSCode after each change.Can anyone advise?
Beta Was this translation helpful? Give feedback.
All reactions