{"id":20299,"library":"prettier-config-kwork","title":"prettier-config-kwork","description":"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.","status":"deprecated","version":"0.0.34","language":"javascript","source_language":"en","source_url":"https://github.com/knowledge-work/prettier-config-kwork","tags":["javascript","prettier","config","prettierconfig"],"install":[{"cmd":"npm install prettier-config-kwork","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-config-kwork","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-config-kwork","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is a Prettier config string, not a JavaScript module. In package.json, set the prettier field to the package name.","wrong":"import * as config from 'prettier-config-kwork'","symbol":"prettier-config-kwork","correct":"{\n  \"prettier\": \"prettier-config-kwork\"\n}"},{"note":"If using a config file, require the module directly. The package exports a config object.","wrong":"module.exports = 'prettier-config-kwork';","symbol":"prettierrc.cjs","correct":"module.exports = require('prettier-config-kwork');"},{"note":"In .prettierrc, just put the string. Do not use a function call in JSON.","wrong":"require('prettier-config-kwork')","symbol":".prettierrc","correct":"\"prettier-config-kwork\""}],"quickstart":{"code":"{\n  \"name\": \"my-project\",\n  \"version\": \"1.0.0\",\n  \"devDependencies\": {\n    \"prettier\": \"^3\",\n    \"prettier-config-kwork\": \"^0.0.34\"\n  },\n  \"prettier\": \"prettier-config-kwork\"\n}","lang":"javascript","description":"This shows how to use prettier-config-kwork in package.json. Install as devDependency, then set the prettier field to the package name."},"warnings":[{"fix":"Use an alternative Prettier config, such as @trivago/prettier-plugin-sort-imports or @ianvs/prettier-plugin-sort-imports, or create your own.","message":"This package is deprecated and no longer maintained. Please migrate to another Prettier configuration.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure prettier field is exactly \"prettier-config-kwork\", not a relative file path.","message":"Prettier v3 changed the config resolution; string configs must be the exact package name.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"In .prettierrc, use a string. In a JS config file, use module.exports = require('prettier-config-kwork');","message":"The 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.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install --save-dev prettier-config-kwork","cause":"The package is not installed or not in node_modules.","error":"Error: Cannot find module 'prettier-config-kwork'"},{"fix":"Set prettier field to exactly \"prettier-config-kwork\" without file extension.","cause":"Using a self-referencing config incorrectly. The prettier field might be set to an invalid path.","error":"[prettier] Invalid configuration file: Unexpected token"},{"fix":"Ensure .prettierrc contains just the string \"prettier-config-kwork\" or an object with a key like prettierConfig.","cause":"The .prettierrc file contains JSON syntax errors.","error":"Prettier could not load configuration because the configuration file is not valid JSON"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}