Skip to content

Commit

Permalink
Work around eslint custom rules bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Iaconis committed Mar 14, 2016
1 parent 4fa11bc commit b2b7faf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const Filter = require('broccoli-filter');
const CLIEngine = require('eslint').CLIEngine;
const rules = require('eslint/lib/rules');
const path = require('path');

/**
Expand Down Expand Up @@ -83,6 +84,9 @@ function EslintValidationFilter(inputTree, options) {
// set formatter
this.formatter = require(this.options.format || 'eslint/lib/formatters/stylish'); // eslint-disable-line global-require

// this resets the rules, but is only intended for test code
rules.testReset();

this.cli = new CLIEngine(this.eslintOptions);

this.eslintrc = resolveInputDirectory(inputTree);
Expand Down

0 comments on commit b2b7faf

Please sign in to comment.