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)
- spaceAround fails for arrow functions inside parens HOT 1
- Support Stroustrup brace stlyes HOT 3
- Support catchStatement.spaceAfterCatchKeyword
- Lexicographical sorting of object keys
- Inappropriately removes type assertion in accessor definition
- Code inside `<pre>` is not formatted HOT 1
- Feature Request: Consistent formatting of multiline eslint-disable descriptions
- Allow different quoteStyle inside of JSX HOT 1
- Parse error when encountering JSDoc style types in declaration files HOT 3
- constructorType.spaceAfterNewKeyword ignores constructors within object literals HOT 2
- 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
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.