Skip to content

Commit

Permalink
Minor auto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Jan 31, 2018
1 parent f35ed0b commit d01c856
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ extends:
rules:
no-console:
- off

no-empty-function:
- off
4 changes: 1 addition & 3 deletions __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ test("Plain", () => {
const outputFile = `${outputFolder}/plain/index.js`

return bundle("./__tests__/fixtures/plain.js", outputFile)
.then(() =>
Promise.all([ expect(fileExists(outputFile)).resolves.toBeTruthy() ])
)
.then(() => Promise.all([ expect(fileExists(outputFile)).resolves.toBeTruthy() ]))
.then(Promise.all([ rimrafp(outputFile) ]))
})

Expand Down
12 changes: 2 additions & 10 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,7 @@ export default function rebase(options = {}) {
const relativeToRoot = path
.relative(path.dirname(fileSource), inputFolder)
.replace(/\\/g, "/")
let relativeOutputPath = path.relative(
outputBase || outputFolder,
outputFolder
)
let relativeOutputPath = path.relative(outputBase || outputFolder, outputFolder)
if (relativeOutputPath) {
relativeOutputPath += "/"
}
Expand All @@ -149,12 +146,7 @@ export default function rebase(options = {}) {
}

const fileContent = fs.readFileSync(fileSource)
return processStyle(
fileContent,
fileSource,
fileDest,
prependName
).then(() =>
return processStyle(fileContent, fileSource, fileDest, prependName).then(() =>
resolve({
code: `import _${fileHash} from "${importId}"; export default _${fileHash};`,
map: { mappings: "" }
Expand Down

0 comments on commit d01c856

Please sign in to comment.