0.1.1 • Published 8 years ago

eslint-code-review v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

ESLint code review

Just a tool for helping debugging ESLint rules.

Example usage

import test from 'ava';
import ESLintCodeReview from 'eslint-code-review';
import config from '../index.js';

test('Check output', (t) => {
  const code = `
    let x = 'y';

    console.log(x);

  `;
  const messages = new ESLintCodeReview(code, config);
  t.is(messages.length, 3);
  t.ok(messages.ruleMatch('prefer-const'));
  t.ok(messages.ruleMatch('no-console'));
  t.ok(messages.ruleMatch('no-undef'));
});
0.1.1

8 years ago

0.1.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago