Registry / devops / npm-package-json-lint-config-tc

npm-package-json-lint-config-tc

JSON →
library10.0.2jsnpmunverified

Shareable configuration for npm-package-json-lint (v10) enforcing TC's project conventions on package.json files. Current stable version: 10.0.2. Release cadence: follows major versions of underlying linter. Key differentiators: opinionated rules optimized for TC projects, strict requirements on license, version, and repository fields. Requires Node >=22 and npm-package-json-lint as a peer dependency.

npm install npm-package-json-lint-config-tc
INSTALL
IMPORT
SIG · NPM-PACKAGE-JSON-L
N
npm-package-json-lint-config-tc
devopsjavascriptv10.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

config
extends: 'npm-package-json-lint-config-tc' in .npmpackagejsonlintrc.json
require('npm-package-json-lint-config-tc')
Config is used via extends in a JSON config file, not imported directly in code.
config
import config from 'npm-package-json-lint-config-tc'
const config = require('npm-package-json-lint-config-tc')
The package exports a plain object; both ESM and CJS work, but the typical usage is via 'extends' in config file.
rules
Use 'rules' in .npmpackagejsonlintrc.json to override specific rules
Modifying the config object directly
Override rules in your own config file; do not mutate the shared config object.

Extend the shareable config in .npmpackagejsonlintrc.json and run the linter.

// .npmpackagejsonlintrc.json { "extends": "npm-package-json-lint-config-tc" } // Then run: // npx npm-package-json-lint . --config .npmpackagejsonlintrc.json
Debug
Known issues
breakingNode 18 dropped in v10.0.0
fix
Upgrade Node.js to v22 or later.
affects: >=10.0.0
breakingPeer dependency npm-package-json-lint must be v10.x for config v10
fix
Ensure npm-package-json-lint@^10.0.0 is installed.
affects: >=10.0.0
breakingNode 16 dropped in v8.0.0
fix
Upgrade Node.js to v18 or later for v8-v9, v20+ for v10.
affects: >=8.0.0
breakingNode 14 dropped in v7.0.0
fix
Upgrade Node.js to v16 or later (v18+ recommended).
affects: >=7.0.0
deprecatedUsing require() in CJS is still supported but may be deprecated in future
fix
Use ESM imports if possible, or stick to 'extends' in config file.
affects: *
gotchaConfig only works with .npmpackagejsonlintrc.json, not .js or .yaml
fix
Use JSON format for the config file.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'npm-package-json-lint-config-tc'
Missing or incorrect peer dependency npm-package-json-lint or config not installed.
fix
Run: npm install --save-dev npm-package-json-lint npm-package-json-lint-config-tc
Error: Configuration for rule "valid-values-author" is invalid
Override rule syntax is wrong; must be a valid npm-package-json-lint rule.
fix
Check rule names in npm-package-json-lint docs and ensure your .npmpackagejsonlintrc.json has correct structure.
The "extends" value "npm-package-json-lint-config-tc" is not a valid string or array.
Config file may be misformatted or missing quotes.
fix
Ensure .npmpackagejsonlintrc.json is valid JSON and contains: { "extends": "npm-package-json-lint-config-tc" }
npm ERR! code ERESOLVE npm ERR! Could not resolve dependency: peer npm-package-json-lint@"^10.0.0"
Installed npm-package-json-lint version does not satisfy peer dependency.
fix
Install compatible version: npm install npm-package-json-lint@^10.0.0
Upgrade
Version history
10.0.2latest on npm
Audit
Dependencies
npm-package-json-lintrequiredpeer dependency required to lint package.json files
Agent activity
2 hits · last 30 days
node
2
Resources
npm-package-json-lint-config-tc — npm install npm-package-json-lint-config-tc · libregistry