An ESLint plugin to lint package-lock.json files, providing rules such as lock-file-version to enforce a specific lock file version (default v3). It uses eslint-plugin-json-es as a parser for JSON files. The plugin helps maintain compatibility and avoid issues with lock file versions, particularly v2's larger footprint. Currently stable at v1.0.0 with no recent releases; requires ESLint >=7. Ideal for teams wanting to standardize lock file versions in CI/CD pipelines.
npm install eslint-plugin-package-lockNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures ESLint to lint package-lock.json and enforce lock file version 3 using the plugin's recommended config.
Install eslint-plugin-json-es: npm install --save-dev eslint-plugin-json-es
Set the version explicitly in the rule options: ["error", { "version": 2 }]Use ESLint's 'import' syntax or upgrade ESLint to support ESM configs.
Use the 'plugin:package-lock/version' extends with explicit overrides instead.
Run: npm install --save-dev eslint-plugin-json-es
Ensure the parser is set to 'eslint-plugin-json-es' in the override for package-lock.json.
Add 'plugins: ["package-lock"]' to your ESLint config.