Suggested configuration (code formatting) for Pixel projects
Install the package:
npm install -D prettier @ska-sa/styleguideCreate a prettier.config.js file with the following contents (assumes type=module is specified in the package.json file):
import config from '@ska-sa/styleguide'
export default configMake sure that .vscode/settings.json includes {"prettier.prettierPath": "./node_modules/prettier", ...}
To publish changes to this package:
- Bump the version in package.json
- Update just the index.js file
- and publish
npm publish --access public