Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
broccoli-lint-eslint
Advanced tools
Lint JavaScript using Eslint
This is a fork of makepanic/broccoli-eslint used to add new features and keep up to date with the latest ESLint. This fork may go away however it will track any API changes made to it's fork as long as possible. Most of the test setup and the build configuration is based on sindresorhus/grunt-eslint. The internal validation is heavily inspired by eslint cli.js
npm install --save broccoli-lint-eslint
Note: The API will change in subsequent 0.x versions.
var eslint = require('broccoli-lint-eslint');
tree = eslint(tree, options);
Type: String
Default: ./eslint.json
Path to eslint configuration file.
Type: Array
Default: built-in rules directory
Paths to a directory with custom rules. Your custom rules will be used in addition to the built-in ones.
Recommended read: Working with Rules
Type: String
Default: 'eslint/lib/formatters/stylish'
Path path to a custom formatter (See eslint/tree/master/lib/formatters for alternatives).
Type: function
Default: null
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:
Example usage:
var path = require('path');
function testGenerator(relativePath, errors) {
return "module('" + path.dirname(relativePath) + '");";
"test('" + relativePath + "' should pass jshint', function() { " +
" ok(passed, moduleName+" should pass jshint."+(errors ? "\n"+errors : '')); " +
"});
};
return eslint(tree, {
config: this.jshintrc.app + '/eslint.json',
rulesdir: this.jshintrc.app,
testGenerator: testGenerator
});
Type: Boolean
Cause exception error on first severe error
FAQs
broccoli filter that runs eslint
The npm package broccoli-lint-eslint receives a total of 19,488 weekly downloads. As such, broccoli-lint-eslint popularity was classified as popular.
We found that broccoli-lint-eslint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.