Nourishing Pizza Microservice

    eslint-code-review

    0.1.1 • Public • Published

    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'));
    });
    

    Install

    npm i eslint-code-review

    DownloadsWeekly Downloads

    6

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • jonathankingston