prettier-config-ikatyang
raw JSON → 1.1.1 verified Sat Apr 25 auth: no javascript maintenance
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.
Common errors
error Cannot find module 'prettier-config-ikatyang' ↓
cause Package not installed or in node_modules
fix
Run
npm install --save-dev prettier-config-ikatyang error Invalid configuration file: module.exports is not a function ↓
cause Used import syntax instead of require
fix
Use
module.exports = require('prettier-config-ikatyang') in prettier.config.js Warnings
breaking Requires Prettier ^1.0.0; incompatible with Prettier 2.x+ ↓
fix Use prettier-config-ikatyang with Prettier v1.x only, or migrate to another config.
deprecated TSLint integration uses deprecated TSLint; prefer ESLint with prettier ↓
fix Migrate to ESLint with @typescript-eslint and eslint-config-prettier.
Install
npm install prettier-config-ikatyang yarn add prettier-config-ikatyang pnpm add prettier-config-ikatyang Imports
- default (config object) wrong
import config from 'prettier-config-ikatyang';correctmodule.exports = require('prettier-config-ikatyang'); - tslint config wrong
"extends": "prettier-config-ikatyang"correct{"extends": "prettier-config-ikatyang/tslint"}
Quickstart
// Install: npm install --save-dev prettier prettier-config-ikatyang
// prettier.config.js
module.exports = require('prettier-config-ikatyang');
// Then format files: npx prettier --write .