Registry / type-stubs / typescript-prettier-language-service

typescript-prettier-language-service

JSON →
library0.0.3jsnpmunverified

This package provides a TypeScript language service plugin designed to integrate Prettier formatting capabilities directly into development environments. It supports both range and document formatting, aiming to ensure consistent code style within editors that leverage the TypeScript Language Server. The current and only published version is 0.0.3, indicating it is an early-stage, experimental project. As of April 2026, it appears to be abandoned, with no updates or new releases in approximately three years, suggesting a lack of ongoing maintenance or development. Its primary differentiator was the direct integration of Prettier into the TypeScript language service, enhancing developer experience by providing automatic formatting within compatible IDEs, but its practical utility is significantly limited by its experimental status and lack of active maintenance.

npm install typescript-prettier-language-service
INSTALL
IMPORT
SIG · TYPESCRIPT-PRETTIE
T
typescript-prettier-language-service
type-stubsjavascriptv0.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

This `tsconfig.json` snippet demonstrates how to enable the `typescript-prettier-language-service` plugin within your TypeScript project. This configuration instructs the TypeScript language server to load the plugin, which then provides Prettier-based formatting services to your IDE or editor.

{ "compilerOptions": { "plugins": [ { "name": "typescript-prettier-language-service" } ] }, "include": [ "src/**/*" ] }
Debug
Known issues
breakingThis package is in an extremely early development stage (version 0.0.3) and appears to be abandoned. Its API is highly unstable and should not be relied upon for production environments, as any future development (which is unlikely) would likely introduce breaking changes without notice.
fix
Avoid using this package for new projects. Consider more mature and actively maintained Prettier integrations, such as dedicated editor extensions or format-on-save utilities, for reliable formatting.
affects: >=0.0.0
gotchaThe project's development environment is documented as Replit, which might indicate a less conventional or community-driven maintenance model. Users should not expect regular updates, bug fixes, or community support channels typical of mainstream open-source projects.
fix
Before integration, thoroughly verify the project's current activity and support availability. Given its abandoned status, it's best to assume no support will be available.
affects: >=0.0.0
deprecatedDue to its abandoned status and low version number, this plugin is unlikely to be compatible with newer versions of TypeScript or Prettier, potentially leading to runtime errors, inconsistent formatting, or complete failure to load.
fix
Always ensure compatibility with your installed `typescript` and `prettier` versions. It is strongly recommended to migrate to actively maintained alternatives that explicitly support current toolchain versions.
affects: <=0.0.3
Errors
Common errors & fixes
Plugin 'typescript-prettier-language-service' failed to load
The plugin is not correctly installed, the `tsconfig.json` configuration is incorrect, or there's an incompatibility with the installed TypeScript version.
fix
Ensure `typescript-prettier-language-service` is present in your `node_modules`. Verify that it's correctly listed in the `compilerOptions.plugins` array in your `tsconfig.json`. Check that your `typescript` and `prettier` versions meet the plugin's peer dependency requirements.
Prettier formatting not applied in editor (e.g., VS Code) despite plugin being enabled.
The plugin might be active but not correctly invoked for formatting, or it's conflicting with another formatting extension or editor setting.
fix
Check your editor's settings to confirm that the TypeScript language service is designated as the primary formatter for TypeScript files. Temporarily disable other formatting extensions to rule out conflicts. Review your editor's output logs for any messages from the TypeScript server regarding the plugin.
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies
prettierrequiredRequired for code formatting; the plugin acts as an adapter for Prettier's capabilities.
typescriptrequiredThe plugin extends and integrates with the TypeScript language service itself.
Agent activity
34 hits · last 30 days
node
28
OpenAI (training)
1
Resources
typescript-prettier-language-service — npm install typescript-prettier-language-service · libregistry