0.10.1 • Published 4 years ago
di-prettier-config v0.10.1
di-prettier-config
This package contains the core prettier config.
Setup
- remove prettier from your app, this is now included in this package, run
yarn remove prettier
- add this package by running
yarn add -SED di-prettier-config
- Replace your
.prettier.yaml
with.prettierrc.js
this file only needs to contain the following line:
module.exports = require("di-prettier-config");
In case you need to override some settings this can be done like this:
module.exports = {
...require("di-prettier-config"),
useTabs: true,
};
Versioning
Eslint integrates with prettier so we're matching major version numbers with eslint
Best Practices
- ensure that you're always using the same major version of
di-prettier-config
andeslint-config-deepimpact
Documentation
Options: https://prettier.io/docs/en/options.html Blog: https://prettier.io/blog/