Registry / devops / prettier-basic

prettier-basic

JSON →
library1.0.0jsnpmunverified

A shared Prettier configuration package providing a basic set of formatting rules based on Airbnb's standard with personal modifications. Current stable version: 1.0.0. This configuration is intended for projects using Prettier 2.x. It serves as a simple alternative to more comprehensive shared configs like @ivandotv/prettier-config or eslint-config-prettier, but offers limited customization and no built-in integration with ESLint. The package is released as-is with no active release cadence.

npm install prettier-basic
INSTALL
IMPORT
SIG · PRETTIER-BASIC
P
prettier-basic
devopsjavascriptv1.0.0
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-basic
// In .prettierrc: "prettier-basic"
// Incorrect: using require in .prettierrc (must be JSON string or module export) require("prettier-basic")
The package is used as a string reference in prettier's configuration file, not imported directly.
spread config
// In .prettierrc.js: module.exports = { ...require("prettier-basic"), semi: false, };
// Wrong: using import instead of require in CJS context import { ... } from 'prettier-basic'
This package is CommonJS-only; ESM import is not supported.
prettier-basic (TypeScript)
// In .prettierrc.js with TypeScript: module.exports = { ...require("prettier-basic"), semi: false, as const };
// Wrong: attempting to use ts extension without proper setup import prettierConfig from 'prettier-basic'
The package does not ship TypeScript declarations; use @types/prettier or define your own types.

Installs prettier and prettier-basic, sets the config in package.json, and runs a formatting command.

npm install --save-dev prettier prettier-basic echo '{ "prettier": "prettier-basic" }' > package.json # Or create .prettierrc with content: prettier-basic # Then format files: npx prettier --write "**/*.{js,jsx,ts,tsx,css,scss,md}"
Debug
Known issues
gotchaThe configuration is based on the author's personal preferences and may not align with team standards.
fix
Review the actual rules by looking at source code or use --check before applying.
affects: >=1.0.0
gotchaNo active maintenance or updates; the package may become incompatible with newer Prettier versions.
fix
Consider using a more actively maintained shared config like @ivandotv/prettier-config.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'prettier-basic'
The package is not installed or not in node_modules.
fix
Run `npm install --save-dev prettier-basic` or ensure it's in package.json devDependencies.
Error: Invalid configuration file: "prettier-basic" is not a valid option
Using the string in .prettierrc file without proper JSON syntax.
fix
In .prettierrc, the content should be exactly `"prettier-basic"` (with quotes) or in package.json under "prettier" key.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
prettierrequiredPeer dependency required to use the configuration
Agent activity
2 hits · last 30 days
node
2
Resources
prettier-basic — npm install prettier-basic · libregistry