Comments (9)
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.
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.
I am running Windows 7:
C:\Users\ak>prettier --version
1.1.0
C:\Users\ai>npm install sublime-js-prettier -g
C:\Users\ai\AppData\Roaming\npm
`-- [email protected]
`-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected] deduped
| +-- [email protected] deduped
| `-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected] deduped
| `-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected] deduped
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected] deduped
| `-- [email protected]
+-- [email protected]
| +-- [email protected] deduped
| +-- [email protected]
| | +-- [email protected] deduped
| | `-- [email protected] deduped
| +-- [email protected]
| `-- [email protected]
| `-- [email protected]
| `-- [email protected]
| `-- [email protected]
`-- [email protected]
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.
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.
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.
The same happens when I run prettier-standard from command line.
from sublimejsprettier.
Solutions for this ? I´m having the same problem. "singleQuote"
is set to true.
from sublimejsprettier.
is there any solutions? I'm having the same problem!
from sublimejsprettier.
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)
- JsPrettier using html parser instead of svelte HOT 4
- [Question] Auto formatting not triggering HOT 4
- `.prettierignore` is not honored correctly HOT 2
- auto_format_on_save doesn't work with prettier-php, but my manual keybind does. HOT 2
- Saving a php document with cursor inside a script tag causes cursor to jump to top of document HOT 2
- Svelte support + bug HOT 4
- JsPrettier’s parser detection interferes with the Liquid Prettier plugin HOT 3
- Fails to work with ruby files using @prettier/plugin-ruby HOT 2
- Allow unsaved files to be formatted with prettier without saving HOT 4
- SyntaxError: Invalid or unexpected token HOT 6
- Problem formatting .svelte files HOT 3
- Add Support For ESLinter Configurations HOT 2
- Support not passing any Prettier config CLI options even when *not* using a Prettier config file HOT 3
- Crash when low on memory HOT 2
- JsPrettier cannot find plugin HOT 5
- Switch to `--log-level` Prettier CLI option name is needed HOT 2
- Prettier cannot find plugin HOT 6
- [Question] I could not format css, json... HOT 7
- JsPrettier doesn't run in appropriate context when used in monorepo context HOT 1
- Support ESM config files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublimejsprettier.