5.0.0 • Published 10 months ago
@tinkoff/prettier-config v5.0.0
@tinkoff/prettier-config
Common Prettier configuration. Compatible with another eslint configs.
Usage
- Install from npm
npm i --save-dev @tinkoff/prettier-config- Create
.prettierrc.js(or.prettierrc.mjsif 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
- Upgrade Prettier: Update Prettier to version
^3.2.5. You can do this by running:
npm install prettier@^3.2.5 -D- 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.jsto.prettierrc.mjs. - Update the content of
.prettierrc.mjsto useexport defaultinstead ofmodule.exports. The updated file should look like this:
- Rename
export { default } from '@tinkoff/eslint-config';import config from '@tinkoff/eslint-config';
export default {
...config,
// your prettier configuration
};5.0.0
10 months ago
4.0.0
1 year ago
4.1.1
1 year ago
3.0.0
1 year ago
2.0.4
2 years ago
2.0.0
2 years ago
1.52.1
3 years ago
1.45.1
3 years ago
1.47.1
3 years ago
1.29.1
4 years ago
1.32.0
4 years ago
1.31.1
4 years ago
1.32.1
4 years ago
1.28.0
4 years ago
1.26.0
4 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