Giter Club home page Giter Club logo

Comments (9)

adonis-work avatar adonis-work commented on May 29, 2024

Maybe a solution for JS Standard cooperation would be to call prettier-standard instead of prettier on command line or via prettier_cli_path (default: empty) in configuration?

https://github.com/sheerun/prettier-standard

from sublimejsprettier.

jonlabelle avatar jonlabelle commented on May 29, 2024

I can't reproduce on my end. Can you post back w/ your setup (below are my specs):

Prettier (cli command)

$ prettier --version
> 1.1.0

JsPrettier (package.json)

  "name": "sublime-js-prettier",
  "version": "1.7.2",

Prettier Args (enable the debug setting and open the ST console)

/usr/local/bin/prettier           \
    --stdin                       \
    --color=false                 \
    --print-width 80              \
    --single-quote=true           \
    --trailing-comma none         \
    --bracket-spacing=true        \
    --jsx-bracket-same-line=false \
    --parser babylon              \
    --semi=true                   \
    --tab-width 4                 \
    --use-tabs=true

from sublimejsprettier.

adonis-work avatar adonis-work commented on May 29, 2024

I am running Windows 7:

C:\Users\ak>prettier --version
1.1.0
 JsPrettier DEBUG - Prettier CLI Command 
-----------------------------------------

C:\Users\ai\AppData\Roaming\npm\prettier --stdin --color=false 
--print-width 80 --single-quote=true --trailing-comma none 
--bracket-spacing=true --jsx-bracket-same-line=false --parser babylon 
--semi=false --tab-width 2 --use-tabs=false

from sublimejsprettier.

jonlabelle avatar jonlabelle commented on May 29, 2024

Is the same behavior observed if you run against Prettier directly from the command line?

For example:

C:\Users\ai\AppData\Roaming\npm\prettier --stdin --color=false 
--print-width 80 --single-quote=true --trailing-comma none 
--bracket-spacing=true --jsx-bracket-same-line=false --parser babylon 
--semi=false --tab-width 2 --use-tabs=false < path_to_js_file.js

I'm just trying to determine if the issue has anything to do with the JsPrettier plug-in, or Prettier itself.

from sublimejsprettier.

adonis-work avatar adonis-work commented on May 29, 2024

Yes, I get the same result in command line:

const GoogleLoginButton = React.createClass({
  componentDidMount: () => {
    window.addEventListener('google-loaded', renderGoogleLoginButton)
    renderGoogleLoginButton()
  },
  render: () => <div id="gmailLogin" />
})

from sublimejsprettier.

adonis-work avatar adonis-work commented on May 29, 2024

sheerun/prettier-standard#8

The same happens when I run prettier-standard from command line.

from sublimejsprettier.

renatonmendes avatar renatonmendes commented on May 29, 2024

Solutions for this ? I´m having the same problem. "singleQuote" is set to true.

from sublimejsprettier.

sponia-joker avatar sponia-joker commented on May 29, 2024

is there any solutions? I'm having the same problem!

from sublimejsprettier.

lock avatar lock commented on May 29, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from sublimejsprettier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.