@tinkoff/prettier-config

4.0.0 • Public • Published

@tinkoff/prettier-config

Common Prettier configuration. Compatible with another eslint configs.

Usage

  1. Install from npm
npm i --save-dev @tinkoff/prettier-config
  1. Create .prettierrc.js (or .prettierrc.mjs if you use CJS in project) at project root
export { default } from '@tinkoff/prettier-config';

More information about available at prettier documentation

Available presets

  • angular
{
  // ...
  prettier: '@tinkoff/prettier-config/angular',
}

Migration guide

From v3 to v4

  1. Upgrade Prettier: Update Prettier to version ^3.2.5. You can do this by running:
npm install prettier@^3.2.5 -D
  1. Update Configuration File: If you are using CommonJS (cjs) in your project, you need to rename your configuration file and update the export syntax.
    • Rename .prettierrc.js to .prettierrc.mjs.
    • Update the content of .prettierrc.mjs to use export default instead of module.exports. The updated file should look like this:
export { default } from '@tinkoff/eslint-config';
import config from '@tinkoff/eslint-config';

export default {
  ...config,
  // your prettier configuration
};

Package Sidebar

Install

npm i @tinkoff/prettier-config

Weekly Downloads

203

Version

4.0.0

License

Apache-2.0

Unpacked Size

25.4 kB

Total Files

7

Last publish

Collaborators

  • yeahga
  • sradyukov
  • hondasmx
  • makar_l
  • tinkoffbank
  • dmitry-korolev
  • rouland
  • ishivan
  • ytsareva
  • shoom3301
  • waterplea
  • meskill
  • marsibarsi
  • zig-green
  • super_oleg
  • dersizes
  • alexkvak