1.5.0 • Published 12 months ago
@newlevelup/syncpack-config v1.5.0
syncpack-config

New Level Up shareable config for Syncpack
Installation
Install Syncpack and @newlevelup/syncpack-config:
yarn add -D syncpack @newlevelup/syncpack-configUsage
💡 The purpose of the syncpack is formatting
package.jsonand 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
};