npm-package-json-lint-config-tnw contains a strict package-json-lint configuration for apps and libraries.
Category | Status |
---|---|
Version | |
Dependencies | |
Dev dependencies | |
Build | |
License |
$ npm install npm-package-json-lint-config-tnw \
npm-package-json-lint
This module contains a very strict package-json-lint configuration, one for apps and one for libraries. It aims to eradicate any variation in your package.json
files. It intends to make your package manifests look uniform, enforce that certain fields exist and prevent you from accidentally installing non-strict dependencies. This helps you to narrow down your focus to pure content, as you do not have to think about the order of fields or which fields you need any more. There is very little difference between the config variant for apps and the one for libraries; The difference is mainly that libraries expose an entry point for code imports, while apps expose an executable.
To use one of those configurations, create a .npmpackagejsonlintrc.json
file in your project and use the extends
keyword:
{
"extends": "npm-package-json-lint-config-tnw/lib"
}
Alternatively, you may also use npm-package-json-lint-config-tnw/app
.
If you want to override any rules, you can do so in your configuration file.
To run quality assurance for this module use roboter:
$ npx roboter