@tiaanduplessis/gulp-prettier-eslint
v1.0.0
Published
Gulp plugin for prettier-eslint
Downloads
4
Maintainers
Readme
Install
$ npm install @tiaanduplessis/gulp-prettier-eslint
# OR
$ yarn add @tiaanduplessis/gulp-prettier-eslint
Usage
const gulp = require('gulp')
const format = require('@tiaanduplessis/gulp-prettier-eslint')
gulp.task('default', () => {
gulp
.src('./src/*.js')
.pipe(
format({
eslintConfig: {
parserOptions: {
ecmaVersion: 7
},
rules: {
semi: ['error', 'never']
}
},
prettierOptions: {
bracketSpacing: true
},
fallbackPrettierOptions: {
singleQuote: false
}
})
)
.pipe(gulp.dest('./dist'))
})
Contributing
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
License
Licensed under the MIT License.