@newlevelup/syncpack-config
v1.5.0
Published
New Level Up shareable config for syncpack
Downloads
108
Readme
syncpack-config
New Level Up shareable config for Syncpack
Installation
Install Syncpack and @newlevelup/syncpack-config
:
yarn add -D syncpack @newlevelup/syncpack-config
Usage
💡 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.
// `syncpack.config.js` or `.syncpackrc.js`
module.exports = require('@newlevelup/syncpack-config');
Extending
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:
module.exports = {
...require('@newlevelup/syncpack-config'),
indent: ' ', // example override
};