Skip to content

Commit

Permalink
Added missing test file and removed commented console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Payne committed Jul 23, 2020
1 parent 26bfad4 commit 0aec1d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rules/no-relative-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import docsUrl from '../docsUrl'

function findNamedPackage(filePath) {
const found = readPkgUp.sync({cwd: filePath, normalize: false})
// console.log(found)
if (found.pkg && !found.pkg.name) {
return findNamedPackage(path.join(found.path, '../..'))
}
Expand Down
1 change: 1 addition & 0 deletions tests/files/package-scoped/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function () {}
6 changes: 6 additions & 0 deletions tests/files/package-scoped/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@scope/package-named",
"description": "Scoped, named package",
"main": "index.js"
}

0 comments on commit 0aec1d3

Please sign in to comment.