Comments (5)
Don't print double newlines at EOF to stdout by lydell · Pull Request #437 · prettier/prettier
prettier/prettier#437
from prettier-eslint-cli.
Hmmm... That's odd. I'm not sure. Really depends on a lot of stuff. Could you dig a little deeper? You might find the --log-level
option useful. In Atom, you can open dev tools and type: process.env.LOG_LEVEL = 'trace'
and you'll get helpful logs there too.
Happy to review PRs!
from prettier-eslint-cli.
Unfortunately, there's no clear distinction between the traces got from the both side(Atom and vim).
On the vim side, if I run prettier and eslint independently, there's no problem on the output.
As a workaround, I had to add noeol and binary option to my vim configuration:
autocmd FileType javascript.jsx,javascript setlocal noeol binary formatprg=prettier-eslint\ --stdin\ --prettier.jsx-bracket-same-line\ --prettier.parser\ babylon\ --prettier.single-quote\ --prettier.trailing-comma\ all
Thanks for your help.
from prettier-eslint-cli.
Huh, yeah, I'm not sure what's causing the issue, but I'm glad you got a workaround that works. Based on your workaround I expect that this is unrelated to prettier-eslint. Thanks!
from prettier-eslint-cli.
Ah! That makes sense! Anyone want to make a pull request for that?
from prettier-eslint-cli.
Related Issues (20)
- support directory as argument HOT 3
- Is it possible to provide a `--check` option like prettier? HOT 2
- I have problem about this package, HOT 1
- eslint error: Configuration for rule "import/order" is invalid HOT 1
- What different beween use prettier-eslint-cli and use prettier and eslint step by step? HOT 3
- Can an error be reported when the error cannot be resolved? HOT 1
- `--list-different` doesn't exclude node_modules HOT 1
- `--list-different` from script fails HOT 1
- Error: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received '' HOT 4
- Error after updating eslint to 8.1.0 HOT 8
- Still reports "jsxBracketSameLine is deprecated." even when option is not used HOT 1
- Option to fix only `layout` issues HOT 1
- Add --cache option HOT 1
- incompatibility with Next eslint config HOT 11
- [v7] bump dependencies HOT 1
- Maintainace: replace `semantic-release` with `changesets` HOT 12
- Support Yarn Plug n Play HOT 1
- Failed to load plugin 'react-hooks' declared in 'CLIOptions' HOT 1
- Support for Prettier 3 (TypeError: Expected `input` to be a `string`, got `object`) HOT 1
- Allow prettier-eslint-cli to write eslint errors/warnings to stderr? HOT 15
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 prettier-eslint-cli.