Comments (2)
I personally don't like this style in any form, but I've seen people who like to add the leading comma when listing several declarations, so you might want to take that into consideration as an option.
var left = '<pre><code\\b[^>]*>'
, right = '</code></pre>'
, flags = 'g'
And just in case you didn't notice, your example has a trailing comma which will break the file. 👀
from dprint-plugin-typescript.
@lazarljubenovic good idea! Opened #2.
I'm not a fan of multiple variable declarations per statement either :)
from dprint-plugin-typescript.
Related Issues (20)
- constructorType.spaceAfterNewKeyword ignores constructors within object literals HOT 2
- eslint sort-import vs dprint sort imports HOT 3
- Expand `forceMultiLineSpecifiers` to format imports of a single named import as a single line
- Format breaks file with merge conflict HOT 2
- Support configuration for space around equal sign in JSX props HOT 1
- Option `jsxExpressionContainer.spaceSurroundingExpression` adds spaces between multiple braces
- Q: Plugin Location HOT 2
- Consider renaming `arrowFunction.useParentheses: "always"` HOT 1
- Interpretation of trailing comments with ASI formatting
- bracePosition: nextLine does not work when passing objects as arguments
- Allow multi-line, multi-argument function calls to maintain formatting
- Duplicate imports do not have a consistent ordering HOT 1
- Break interfaces/types onto multiple lines
- Wrapping of arrow functions in the second argument of functions
- `semiColons` should be spelled `semicolons` because it's a single word. HOT 3
- Allow brackets to be put on the same link as case statement (and potentially allow "break" to be on the same link as the closing bracket)
- Alphabetical ordering of interfaces, classes, properties and methods
- Option to disable the removing of trailing spaces
- dprint moves `else` to the wrong `if` HOT 1
- Incorrect indentation of inner expression in template literal
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 dprint-plugin-typescript.