Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
broccoli-jshint
Advanced tools
Run JSHint on the provided node.
var JSHinter = require('broccoli-jshint');
// Assuming someNode contains .js files
var node = new JSHinter(someNode);
new JSHinter(inputNode, options)
options.jshintrcRoot
{String}
Will look in the root of the provided node for a .jshintrc
. If you would prefer to use another specific root
for looking up your JSHint config, supply this option.
Default: input node root
options.jshintrcPath
{String}
Specify the path to the .jshintrc
that you would like to use. Use this option if you would like to use a .jshintrc
file from a path that is not in the same hierarchy as your input node (if it is use the .jshintrcRoot
).
Default: undefined
options.log
{true|false}
Should we log errors to the console?
Default: true
options.disableTestGenerator
{true|false}
If true
tests will not be generated.
Default: false
options.testGenerator
{Function}
The function used to generate test modules. You can provide a custom function for your client side testing framework of choice.
The function receives the following arguments:
relativePath
- The relative path to the file being tested.errors
- A generated string of errors found.Default generates QUnit style tests:
var path = require('path');
function(relativePath, errors) {
return "module('" + path.dirname(relativePath) + '");";
"test('" + relativePath + "' should pass jshint', function() { " +
" ok(passed, moduleName+" should pass jshint."+(errors ? "\n"+errors : '')); " +
"});
};
options.console
{Object}
Allows you to provide a custom console
object. This is useful if you have to supress console output in CI for example.
Default: console
options.annotation
{String}
A human-readable description for this plugin instance.
Default: undefined
I know, right?
Running the tests:
npm install
npm test
This project is distributed under the MIT license.
FAQs
Broccoli plugin to run JSHint
The npm package broccoli-jshint receives a total of 5,598 weekly downloads. As such, broccoli-jshint popularity was classified as popular.
We found that broccoli-jshint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.