Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
Apply prettier to MarkDown files
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcornelissen committed Mar 13, 2019
1 parent 62f6948 commit 9b034fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
arrowParens: "avoid"
bracketSpacing: true
printWidth: 80
proseWrap: 'always'
semi: true
singleQuote: false
trailingComma: "all"
Expand Down
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ npm install --save-dev gulp-gitstage
Then, add it to your `gulpfile.js`:

```javascript
var gitstage = require('gulp-gitstage');
const gitstage = require("gulp-gitstage");

var files = gulp.src('./src/*.ext')
.pipe(gitstage());
const files = gulp.src("./src/*.ext").pipe(gitstage());

files.on('data', function (file) {
console.log('Staged file:', file);
files.on("data", function(file) {
console.log("Staged file:", file);
});
```

Expand All @@ -35,17 +34,17 @@ Currently there is no configuration for `gulp-gitstage`.

```javascript
// Stage all files
gulp.src('./**/*')
.pipe(gitmodified('added'))
gulp.src("./**/*").pipe(gitmodified("added"));
```

```javascript
// Stage previously staged files in case they changed
var gitmodified = require('gulp-gitmodified');
gulp.src('./**/*')
.pipe(gitmodified('modified'))
.pipe(/* edit the file */)
.pipe(gitmodified('A'))
const gitmodified = require("gulp-gitmodified");
gulp
.src("./**/*")
.pipe(gitmodified("modified"))
.pipe(/* edit the file */)
.pipe(gitmodified("A"));
```

## License
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"scripts": {
"test": "jest",
"prettier": "prettier **/*.js --write"
"prettier": "prettier **/*.{js,md} --write"
},
"dependencies": {
"bottleneck": "^2.17.1",
Expand Down

0 comments on commit 9b034fb

Please sign in to comment.