Comments (2)
Thanks @lukescott, I will rewrite the title then give my response.
from prettierx.
I would really favor this kind of an enhancement, and a contribution would be very welcome. I hope to make this soon, cannot make any promises right now. Here are a few comments I have:
I would consider this to be applicable to JavaScript and supported derivatives such as Flow and TypeScript. Whenever we add a test case, it is possible to specify that it be run over parsers such as Babel (was born as Babylon), Flow, and TypeScript.
I found the original title to be a bit confusing since I am not so familiar with the tslint tooling. Here is the reference documentation that I think the title was referring to: https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terIndentRule.md
If I could have my way, I would like a tslint plugin that handled the line wrapping and use the other auto-fix rules for everything else. But nothing like that exists that I know of.
I suspect you mean some kind of a TypeScript equivalent to eslint-plugin-prettier (see https://prettier.io/docs/en/eslint.html) or prettier-eslint
.
I think the ultimate solution would be some kind of a pipeline-based toolset using the Acorn parser data structure, as I described in #8 (comment).
And please accept my apologies for the small delay.
from prettierx.
Related Issues (20)
- improve formatting between long function param and long type param HOT 2
- [prettierx] more flexible ternary conditional expression formatting
- [prettierx] Yarn audit issues in transitive dependencies HOT 18
- improve "smart formatting" of HTML class attributes
- option: Break line and indent on nested conditions
- more flexible breaks in assignment statements?
- Prettier vs prettierX in docs
- Test build with Rollup only (no Webpack)
- [prettierx] changed indenting of curried arrow functions should be optional
- followup re: Prettier 2.3.2 & PostCSS 8 updates
- 💡[prettierX] generate pretty-printed code from Babel AST
- [prettierX] parallel / clustered Prettier
- [prettierX] better HTML whitespace sensitivity? HOT 1
- Dependency Dashboard
- Breaks CSS pseudo-class inside a template literal
- Use of enums in object declaration causes failure with --align-object-properties & TypeScript HOT 4
- Having to manually update via npm every other day to keep the extension working?
- Update minimist version to fix security issues HOT 2
- Configure empty lines? HOT 4
- Line-break each argument in TS class constructor definitions
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 prettierx.