Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-lint-eslint

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-lint-eslint - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

23

lib/index.js

@@ -1,3 +0,5 @@

var Filter = require('broccoli-filter'),
CLIEngine = require('eslint').CLIEngine;
var Filter = require('broccoli-filter');
var CLIEngine = require('eslint').CLIEngine;
var linter = require('eslint').linter;
var path = require('path');

@@ -52,2 +54,3 @@ /**

config.rulePaths = options.rulesdir ? [options.rulesdir] : [];
if ('config' in options) {

@@ -71,2 +74,15 @@ config.rulePaths = options.config;

EslintValidationFilter.prototype.targetExtension = 'js';
EslintValidationFilter.prototype.write = function (readTree, destDir) {
var that = this
return readTree(this.inputTree).then(function (srcDir) {
if (!that.eslintrc) {
that.eslintrc = srcDir;
}
return Filter.prototype.write.call(that, readTree, destDir)
});
};
EslintValidationFilter.prototype.processString = function (content, relativePath) {

@@ -78,3 +94,4 @@ 'use strict';

// verify file content
var result = this.cli.executeOnText(content).results[0].messages;
var config = this.cli.getConfigForFile(this.eslintrc + '/' + relativePath);
var result = linter.verify(content, config, relativePath);

@@ -81,0 +98,0 @@ // if verification has result

2

package.json
{
"name": "broccoli-lint-eslint",
"version": "0.1.3",
"version": "0.1.4",
"description": "broccoli filter that runs eslint",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc