Add `warn` and `error` snippets

Add these two snippets:

warn   -> console.warn
error  -> console.error