1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-08 23:15:29 +02:00

fixed jsbeautifyrc

This commit is contained in:
Harvey Kandola 2016-07-04 14:15:47 -07:00
parent 1cb7121401
commit bb9ac592d9
2 changed files with 104 additions and 102 deletions

View file

@ -2,14 +2,14 @@
"css": {
"indent_size": 4,
"indent_level": 0,
"indent_with_tabs": true
"allowed_file_extensions": ["css", "scss", "sass", "less"]
"max_preserve_newlines": 2,
"indent_with_tabs": true,
"allowed_file_extensions": ["css", "scss", "sass", "less"],
"max_preserve_newlines": 2
},
"html": {
"indent_size": 4,
"indent_level": 0,
"indent_with_tabs": true
"indent_with_tabs": true,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"wrap_line_length": 0,
@ -20,7 +20,7 @@
"hbs": {
"indent_size": 4,
"indent_level": 0,
"indent_with_tabs": true
"indent_with_tabs": true,
"max_preserve_newlines": 2,
"preserve_newlines": true,
"wrap_line_length": 0
@ -28,16 +28,18 @@
"js": {
"indent_size": 4,
"indent_level": 0,
"indent_with_tabs": true
"indent_with_tabs": true,
"preserve_newlines": true,
"wrap_line_length": 0,
"break_chained_methods": false,
"max_preserve_newlines": 2,
"jslint_happy": true,
"brace_style": "collapse-preserve-inline",
"space_after_anon_function": false,
"keep_function_indentation": false,
"space_before_conditional": true
"space_after_anon_function": false,
"space_before_conditional": true,
"space_in_empty_paren": false,
"space_in_paren": false
},
"sql": {
"indent_size": 4,
@ -47,7 +49,7 @@
"_default": {
"indent_size": 4,
"indent_level": 0,
"indent_with_tabs": true
"indent_with_tabs": true,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"wrap_line_length": 0

View file

@ -20,11 +20,11 @@ export default Ember.Component.extend({
didRender() {
let self = this;
Mousetrap.bind('esc', function() {
Mousetrap.bind('esc', function () {
self.send('onCancel');
return false;
});
Mousetrap.bind(['ctrl+s', 'command+s'], function() {
Mousetrap.bind(['ctrl+s', 'command+s'], function () {
self.send('onAction');
return false;
});