Closed Kristinita closed 6 years ago
Status: :speak_no_evil: Excuse me for troubling, my mistake
grunt-jsbeautifier required .jsbeautifyrc
in config. Correct configuration:
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jsbeautifier')
grunt.initConfig
jsbeautifier:
options:
config: ".jsbeautifyrc"
files: ['SashaJsBeautify.html']
But it would be nice, if .jsbeautifyrc
will config file by default.
Thanks.
1. Summary
Part of grunt-jsbeautifier documentation:
But grunt-jsbeautifier doesn't support
.jsbeautifyrc
.2. Environment
3. Configuration
Example configuration in
SashaGruntJsBeautify
branch of my demo repository:.jsbeautifyrc
file:SashaJsBeautify.html
:.editorconfig
:Gruntfile.coffee
:4. Steps to reproduce
Then check tabs and final newline via eclint:
5. Expected behavior
If
Gruntfile.coffee
:or I run js-beautify CLI
No warnings and/or errors.
6. Actual behavior
Else
Gruntfile.coffee
:Look at this on Travis CI.
Thanks.