{"id":20303,"library":"prettier-config-planes","title":"Prettier Config Planes","description":"Shared Prettier configuration package for Team Planes projects. Version 1.0.1 is the current stable release. This package provides a centralized, opinionated Prettier config to ensure consistent code formatting across all projects in the organization. It extends the base Prettier options and can be used by referencing the package name in a project's package.json. The package has no additional dependencies, making it lightweight and easy to adopt. It follows the standard Prettier shared config pattern, allowing for simple integration and overrides.","status":"active","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/teamplanes/prettier-config-planes","tags":["javascript"],"install":[{"cmd":"npm install prettier-config-planes","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-config-planes","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-config-planes","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is a shared config, not a JavaScript module. It is used by referencing the package name in package.json.","wrong":"// Common mistake: trying to import in JS file","symbol":"prettier-config-planes","correct":"// In package.json: \"prettier\": \"prettier-config-planes\""},{"note":"If using a config file, you can require the package directly.","wrong":"import prettierConfig from 'prettier-config-planes'; // ESM import not supported","symbol":"prettier.config.js","correct":"module.exports = require('prettier-config-planes');"}],"quickstart":{"code":"// 1. Install the package\nnpm install --save-dev prettier-config-planes\n\n// 2. Add to package.json:\n// \"prettier\": \"prettier-config-planes\"\n\n// Or create a prettier.config.js:\nmodule.exports = require('prettier-config-planes');\n\n// Then run prettier:\n// npx prettier --check .","lang":"javascript","description":"Shows how to install and use the shared Prettier config in a project."},"warnings":[{"fix":"Use require('prettier-config-planes') in a CommonJS config file, or set the 'prettier' key in package.json.","message":"Cannot import in a JavaScript file via ES import; must use require or package.json reference.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Review the config options and use overrides in a local prettier.config.js if needed.","message":"The config may override project-specific settings; check for unintended changes.","severity":"gotcha","affected_versions":">=1.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-planes' to ensure it's installed.","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'prettier-config-planes'"},{"fix":"Change the config file to CommonJS (module.exports = require(...)) or use package.json prettier field.","cause":"Using ES Module syntax to import the config.","error":"Invalid configuration file 'prettier.config.js': require() of ES Module not supported"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}