Skip to content

Commit

Permalink
Added coffeelint support
Browse files Browse the repository at this point in the history
  • Loading branch information
Fank committed Jun 23, 2015
1 parent dd0c3cb commit a5dbecb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
37 changes: 37 additions & 0 deletions coffeelint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"max_line_length": {
"level": "ignore"
},
"no_empty_param_list": {
"level": "error"
},
"arrow_spacing": {
"level": "error"
},
"no_interpolation_in_single_quotes": {
"level": "error"
},
"no_debugger": {
"level": "error"
},
"prefer_english_operator": {
"level": "error"
},
"colon_assignment_spacing": {
"spacing": {
"left": 0,
"right": 1
},
"level": "error"
},
"braces_spacing": {
"spaces": 0,
"level": "error"
},
"spacing_after_comma": {
"level": "error"
},
"no_stand_alone_at": {
"level": "error"
}
}
6 changes: 3 additions & 3 deletions lib/firepad.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ module.exports =
@subscriptions.dispose()

setupShare: ->
hash = Crypto.createHash('sha256').update(@shareIdentifier).digest('base64');
@firebase = new Firebase('https://atom-firepad.firebaseio.com').child(hash);
hash = Crypto.createHash('sha256').update(@shareIdentifier).digest('base64')
@firebase = new Firebase('https://atom-firepad.firebaseio.com').child(hash)

editor = atom.workspace.getActiveTextEditor()
@firebase.once 'value', (snapshot) =>
options = {sv_: Firebase.ServerValue.TIMESTAMP}
if !snapshot.val() && editor.getText() != ''
if not snapshot.val() and editor.getText() not ''
options.overwrite = true
else
editor.setText ''
Expand Down

0 comments on commit a5dbecb

Please sign in to comment.