• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

benmosher / eslint-plugin-import / #28399487

31 Aug 2017 08:48AM UTC coverage: 0.0% (-71.0%) from 71.019%
#28399487

push

ljharb
Handle unresolved js import when type is exported with the same name

0 of 1985 branches covered (0.0%)

0 of 8 new or added lines in 2 files covered. (0.0%)

2289 existing lines in 51 files now uncovered.

0 of 3012 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/core/packagePath.js
1
import { dirname } from 'path';
2
import findUp from 'find-up';
3
import readPkgUp from 'read-pkg-up';
4

5

6
export function getContextPackagePath(context) {
UNCOV
7
  return getFilePackagePath(context.getFilename());
×
8
}
9

10
export function getFilePackagePath(filePath) {
UNCOV
11
  const fp = findUp.sync('package.json', { cwd: filePath });
×
UNCOV
12
  return dirname(fp);
×
13
}
14

15
export function getFilePackageName(filePath) {
UNCOV
16
  const { pkg } = readPkgUp.sync({ cwd: filePath, normalize: false });
×
UNCOV
17
  return pkg && pkg.name;
×
18
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc