Registry / devops / prettier-config-ikatyang

prettier-config-ikatyang

JSON →
library1.1.1jsnpmunverified

Shareable Prettier configuration by Ika. Version 1.1.1 is the latest stable release with no active development. It provides a preset of formatting rules for Prettier, intended for personal use but usable by others. Requires Prettier ^1.0.0 as a peer dependency. Includes a TSLint config extension. Not actively maintained; consider using Prettier's built-in configs or other community configs.

npm install prettier-config-ikatyang
INSTALL
IMPORT
SIG · PRETTIER-CONFIG-IK
P
prettier-config-ikatyang
devopsjavascriptv1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

default (config object)
module.exports = require('prettier-config-ikatyang');
import config from 'prettier-config-ikatyang';
CommonJS module, not ESM. Use require() in prettier.config.js.
tslint config
{"extends": "prettier-config-ikatyang/tslint"}
"extends": "prettier-config-ikatyang"
TSLint config is a separate export at 'prettier-config-ikatyang/tslint'.

Shows installation and usage of the shared Prettier config in a Node.js project.

// Install: npm install --save-dev prettier prettier-config-ikatyang // prettier.config.js module.exports = require('prettier-config-ikatyang'); // Then format files: npx prettier --write .
Debug
Known issues
breakingRequires Prettier ^1.0.0; incompatible with Prettier 2.x+
fix
Use prettier-config-ikatyang with Prettier v1.x only, or migrate to another config.
affects: >=1.0.0 <2.0.0
deprecatedTSLint integration uses deprecated TSLint; prefer ESLint with prettier
fix
Migrate to ESLint with @typescript-eslint and eslint-config-prettier.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'prettier-config-ikatyang'
Package not installed or in node_modules
fix
Run `npm install --save-dev prettier-config-ikatyang`
Invalid configuration file: module.exports is not a function
Used import syntax instead of require
fix
Use `module.exports = require('prettier-config-ikatyang')` in prettier.config.js
Upgrade
Version history
1.1.1latest on npm
Audit
Dependencies
prettierrequiredpeer dependency; the config is a Prettier configuration object
Agent activity
4 hits · last 30 days
node
4
Resources
prettier-config-ikatyang — npm install prettier-config-ikatyang · libregistry