New Level Up shareable config for syncpack
npm install @newlevelup/syncpack-configNew Level Up shareable config for Syncpack
Install Syncpack and @newlevelup/syncpack-config:
``sh`
yarn add -D syncpack @newlevelup/syncpack-config
> 💡 The purpose of the syncpack is formatting package.json and validating dependencies versions.
New Level Up Syncpack rules come bundled in @newlevelup/syncpack-config. To enable these rules, add a .syncpackrc.js or syncpack.config.js file. See the Prettier configuration docs for more details.
`javascriptsyncpack.config.js
// or .syncpackrc.js`
module.exports = require('@newlevelup/syncpack-config');
This configuration is not intended to be changed, but if you have a setup where modification is required, it is possible. Syncpack does not offer an "extends" mechanism as you might be familiar from tools such as ESLint.
To extend a configuration you will need to use a syncpack.config.js or .syncpackrc.js file that exports an object:
`javascript``
module.exports = {
...require('@newlevelup/syncpack-config'),
indent: ' ', // example override
};