5.0.0 • Published 6 months ago

@tinkoff/prettier-config v5.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

@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
};
5.0.0

6 months ago

4.0.0

1 year ago

4.1.1

1 year ago

3.0.0

1 year ago

2.0.4

1 year ago

2.0.0

2 years ago

1.52.1

2 years ago

1.45.1

3 years ago

1.47.1

3 years ago

1.29.1

3 years ago

1.32.0

3 years ago

1.31.1

3 years ago

1.32.1

3 years ago

1.28.0

3 years ago

1.26.0

3 years ago

1.15.0

4 years ago

1.13.2

4 years ago

1.13.1

4 years ago

1.13.0

4 years ago

1.19.0

4 years ago

1.15.1

4 years ago

1.19.1

4 years ago

1.22.0

4 years ago

1.20.0

4 years ago

1.3.0

4 years ago