Releases: dprint/dprint-plugin-typescript
0.37.0
Install
Then in your project's .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.ts
,.tsx
,.js
,.jsx
,.mjs
file extensions are matched in an"includes"
pattern. - Add a
"typescript"
configuration property if desired.{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "includes": [ "**/*.{ts,tsx,js,jsx,mjs}" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.37.0.wasm" ] }
0.36.0
Install
Then in your project's .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.ts
,.tsx
,.js
,.jsx
,.mjs
file extensions are matched in an"includes"
pattern. - Add a
"typescript"
configuration property if desired.{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "includes": [ "**/*.{ts,tsx,js,jsx,mjs}" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.36.0.wasm" ] }
0.35.1
Install
Then in your project's .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.ts
,.tsx
,.js
,.jsx
,.mjs
file extensions are matched in an"includes"
pattern. - Add a
"typescript"
configuration property if desired.{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "includes": [ "**/*.{ts,tsx,js,jsx,mjs}" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.35.1.wasm" ] }
0.35.0
Changes
Import and export declarations are now automatically sorted based on the module specifiers.
To turn this off, specify....
"module.sortImportDeclarations": "maintain",
"module.sortExportDeclarations": "maintain"
...in your "typescript"
config.
You can group imports together manually to prevent sorting across groups by adding a blank line or comment. Note that this feature WILL change the behaviour of code because it reorders imports and exports. Be aware of what it's doing!
Install
Then in your project's .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.ts
,.tsx
,.js
,.jsx
,.mjs
file extensions are matched in an"includes"
pattern. - Add a
"typescript"
configuration property if desired.{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "includes": [ "**/*.{ts,tsx,js,jsx,mjs}" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.35.0.wasm" ] }
0.33.0
Install
Then in your project's .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.ts
,.tsx
,.js
,.jsx
,.mjs
file extensions are matched in an"includes"
pattern. - Add a
"typescript"
configuration property if desired.{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "includes": [ "**/*.{ts,tsx,js,jsx,mjs}" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.33.0.wasm" ] }
0.32.9
Install
Then in your project's .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.ts
,.tsx
,.js
,.jsx
,.mjs
file extensions are matched in an"includes"
pattern. - Add a
"typescript"
configuration property if desired.{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "includes": [ "**/*.{ts,tsx,js,jsx,mjs}" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.32.9.wasm" ] }
0.32.8
Install
Then in your project's .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.ts
,.tsx
,.js
,.jsx
,.mjs
file extensions are matched in an"includes"
pattern. - Add a
"typescript"
configuration property if desired.{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "includes": [ "**/*.{ts,tsx,js,jsx,mjs}" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.32.8.wasm" ] }
0.32.7
Install
Then in your project's .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.ts
,.tsx
,.js
,.jsx
,.mjs
file extensions are matched in an"includes"
pattern. - Add a
"typescript"
configuration property if desired.{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "includes": [ "**/*.{ts,tsx,js,jsx,mjs}" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.32.7.wasm" ] }
0.32.6
Install
Then in your project's .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.ts
,.tsx
,.js
,.jsx
,.mjs
file extensions are matched in an"includes"
pattern. - Add a
"typescript"
configuration property if desired.{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "includes": [ "**/*.{ts,tsx,js,jsx,mjs}" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.32.6.wasm" ] }
0.32.5
Install
Then in your project's .dprintrc.json:
- Specify the plugin url in the
"plugins"
array. - Ensure
.ts
,.tsx
,.js
,.jsx
,.mjs
file extensions are matched in an"includes"
pattern. - Add a
"typescript"
configuration property if desired.{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "includes": [ "**/*.{ts,tsx,js,jsx,mjs}" ], "plugins": [ "https://plugins.dprint.dev/typescript-0.32.5.wasm" ] }