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.

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
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.
npm install prettier-config-ikatyang
yarn add prettier-config-ikatyang
pnpm add prettier-config-ikatyang

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 .