Skip to content

Commit 9d7cce9

Browse files
committed
Fixed filePath bug
1 parent 9774940 commit 9d7cce9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ module.exports = {
5959
## Pull requests
6060
Welcome
6161

62+
## Roadmap
63+
* More tests
64+
* Possibility to use a pre-enforced webpack 2 loader to prevent multiple builds
65+
* Add Flow support
66+
6267
### Inspiration
6368
* [prettier-eslint](https://github.com/kentcdodds/prettier-eslint)
6469
* [prettier-webpack-plugin](https://github.com/hawkins/prettier-webpack-plugin)

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function processFilePath({ file, encoding, filePath, eslintConfig, prettierOptio
1616
}
1717
const formatted = format(fmtOptions)
1818
if (formatted !== source) {
19-
fsWriteFile(filepath, { encoding: encoding })
19+
fsWriteFile(file, formatted, { encoding: encoding })
2020
.catch(err => reject(err.message))
2121
.then(() => { resolve('success!') })
2222
}

0 commit comments

Comments
 (0)