Comments (3)
For what itβs worth, when I first discovered dprint, I struggled to find individual plugin config docs as well. So maybe something could be improved about the website
from dprint-plugin-typescript.
Use:
{
"exportDeclaration.sortNamedExports": "caseSensitive",
"importDeclaration.sortNamedImports": "caseSensitive"
}
Then you can remove the eslint rule as it's no longer necessary because the formatter handles it for you now.
Side note: module.sortImportDeclarations
is for sorting individual import declarations in a module rather than the named imports within an import declaration.
from dprint-plugin-typescript.
That worked, thank you! I didn't see this Config page at first! Thank you https://dprint.dev/plugins/typescript/config/
from dprint-plugin-typescript.
Related Issues (20)
- 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
- Don't trailing generic comma when format tsx file when `trailingComma: never` HOT 3
- cannot format associated files
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.