@tictop/code-style
v1.0.0
Published
Shared code style and editor rules for TICTOP services.
Downloads
90
Readme
@tictop/code-style
Shared formatting and editor rules for TICTOP services.
Features
- Shared Prettier config via
@tictop/code-style/prettier - Shared template files:
.editorconfig.prettierignore.gitattributes
- CLI tool:
tictop-code-style-syncto sync template filestictop-code-style-sync --checkto verify drift
Service setup
- Add dependency:
"@tictop/code-style": "file:../TICTOP-CODE-STYLE"- Set Prettier config in service:
module.exports = require('@tictop/code-style/prettier');- Add scripts:
"code-style:sync": "tictop-code-style-sync",
"code-style:check": "tictop-code-style-sync --check"- Run:
npm run code-style:syncPublish (later)
When ready for registry-based distribution, publish this package and replace
file:../TICTOP-CODE-STYLE with a versioned dependency.
