
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
grunt-npm-package-json-lint
Advanced tools
A Grunt wrapper for npm-package-json-lint
This plugin requires Grunt >=0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-npm-package-json-lint --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-npm-package-json-lint');
In your project's Gruntfile, add a section named npmpackagejsonlint
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
npmpackagejsonlint: {
options: {
// Task-specific options go here.
},
files: {
// Target-specific file lists and/or options go here.
}
}
});
String
.npmpackagejsonlintrc file to use for rules config
Boolean
false
Report errors only.
Number
-1
(means no limit)Number of warnings to trigger non-zero exit code.
In this example, the default options are used to lint package.json files.
grunt.initConfig({
npmpackagejsonlint: {
options: {
quiet: false,
maxWarnings: -1
},
files: {
src: ['./package.json']
}
}
});
In this example, the custom options are used to lint package.json files. All warnings will be suppressed.
grunt.initConfig({
npmpackagejsonlint: {
options: {
configFile: '.npmpackagejsonlintrc.json',
quiet: true
},
files: {
src: ['./package.json']
}
}
})
The following options have been removed:
If you were using ignorewarnings
, please use quiet
instead. If you were using stoponwarning
, please use maxWarnings
and set the threshold you would like a non-zero exit code to be returned.
Please see CONTRIBUTING.md.
Please see CHANGELOG.md.
Copyright (c) 2016-2019 Thomas Lindner. Licensed under the MIT license.
FAQs
A Grunt wrapper for npm-package-json-lint
The npm package grunt-npm-package-json-lint receives a total of 20 weekly downloads. As such, grunt-npm-package-json-lint popularity was classified as not popular.
We found that grunt-npm-package-json-lint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.