Registry / testing / prettier-config-kwork

prettier-config-kwork

JSON →
library0.0.34jsnpmunverified

A deprecated Prettier configuration package for KnowledgeWork's projects, last version 0.0.34. It provides a shared set of Prettier formatting rules intended for use across multiple projects. The package is no longer maintained and users should migrate to another Prettier config. It is published on npm and can be installed as a devDependency, then referenced in package.json using the string "prettier-config-kwork". The deprecation warning is clearly stated in the readme.

npm install prettier-config-kwork
INSTALL
IMPORT
SIG · PRETTIER-CONFIG-KW
P
prettier-config-kwork
testingjavascriptv0.0.34
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

prettier-config-kwork
{ "prettier": "prettier-config-kwork" }
import * as config from 'prettier-config-kwork'
This package is a Prettier config string, not a JavaScript module. In package.json, set the prettier field to the package name.
prettierrc.cjs
module.exports = require('prettier-config-kwork');
module.exports = 'prettier-config-kwork';
If using a config file, require the module directly. The package exports a config object.
.prettierrc
"prettier-config-kwork"
require('prettier-config-kwork')
In .prettierrc, just put the string. Do not use a function call in JSON.

This shows how to use prettier-config-kwork in package.json. Install as devDependency, then set the prettier field to the package name.

{ "name": "my-project", "version": "1.0.0", "devDependencies": { "prettier": "^3", "prettier-config-kwork": "^0.0.34" }, "prettier": "prettier-config-kwork" }
Debug
Known issues
deprecatedThis package is deprecated and no longer maintained. Please migrate to another Prettier configuration.
fix
Use an alternative Prettier config, such as @trivago/prettier-plugin-sort-imports or @ianvs/prettier-plugin-sort-imports, or create your own.
affects: >=0.0.0
breakingPrettier v3 changed the config resolution; string configs must be the exact package name.
fix
Ensure prettier field is exactly "prettier-config-kwork", not a relative file path.
affects: >=0.0.0
gotchaThe package does not export a function; using require() in a config file returns the config object, but in .prettierrc JSON you must use a string.
fix
In .prettierrc, use a string. In a JS config file, use module.exports = require('prettier-config-kwork');
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'prettier-config-kwork'
The package is not installed or not in node_modules.
fix
Run npm install --save-dev prettier-config-kwork
[prettier] Invalid configuration file: Unexpected token
Using a self-referencing config incorrectly. The prettier field might be set to an invalid path.
fix
Set prettier field to exactly "prettier-config-kwork" without file extension.
Prettier could not load configuration because the configuration file is not valid JSON
The .prettierrc file contains JSON syntax errors.
fix
Ensure .prettierrc contains just the string "prettier-config-kwork" or an object with a key like prettierConfig.
Upgrade
Version history
0.0.34latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
prettier-config-kwork — npm install prettier-config-kwork · libregistry