Skip to content

Commit

Permalink
fix: add /index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Dec 28, 2021
1 parent 888b431 commit bfd8558
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/eslint-interactive
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env -S node -r source-map-support/register

const { run } = require('../dist');
const { run } = require('../dist/index.js');

run({
argv: process.argv,
Expand Down
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { tmpdir } from 'os';
import { join } from 'path';
import { ESLint } from 'eslint';
import pager from 'node-pager';
import { format } from './formatter.js';
import { format } from './formatter/index.js';
import transformRule, { TransformRuleOption } from './rules/transform.js';
import { SuggestionFilter } from './transforms/apply-suggestions.js';
import { FixableMaker } from './transforms/make-fixable-and-fix.js';
Expand Down
2 changes: 1 addition & 1 deletion test/formatter/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const mockFormatByFiles = jest.fn(() => 'formatByFiles');
const mockFormatByRules = jest.fn(() => 'formatByRules');

import { ESLint } from 'eslint';
import { format } from '../../src/formatter.js';
import { format } from '../../src/formatter/index.js';
import { fakeLintResult, fakeLintMessage } from '../test-util/eslint.js';

jest.mock('../../src/formatter/format-by-files', () => {
Expand Down

0 comments on commit bfd8558

Please sign in to comment.