-
Notifications
You must be signed in to change notification settings - Fork 2
/
lebab.sublime-settings
43 lines (40 loc) · 1.35 KB
/
lebab.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
// Simply using `node` without specifying a path sometimes doesn't work :(
// https://github.com/victorporof/Sublime-HTMLPrettify#oh-noez-command-not-found
// http://nodejs.org/#download
"node_path": {
"windows": "node.exe",
"linux": "/usr/bin/nodejs",
"osx": "/usr/local/bin/node"
},
"lebab_path": {
"windows": "%APPDATA%/npm/node_modules/lebab/bin/index.js",
"linux": "/usr/bin/lebab",
"osx": "/usr/local/bin/lebab"
},
// Safe transforms:
//
// arrow .......... callback to arrow function
// for-of ......... for loop to for-of loop
// arg-spread ..... use of apply() to spread operator
// obj-method ..... function values in objects to methods
// obj-shorthand .. {foo: foo} to {foo}
// no-strict ...... remove "use strict" directives
// commonjs ....... CommonJS module loading to import/export
// exponent ....... Math.pow() to ** operator (ES7)
// multi-var ...... single var x,y; declaration to var x; var y; (refactor)
// Unsafe transforms:
//
// let ............ var to let/const
// class .......... prototype assignments to class declaration
// template ....... string concatenation to template string
// default-param .. use of || to default parameters
"transforms": [
"arrow",
"arg-spread",
"obj-method",
"obj-shorthand",
"no-strict",
"commonjs"
]
}