-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsublimeSetting
102 lines (83 loc) · 2.41 KB
/
sublimeSetting
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Setting
{
"color_scheme": "Packages/Color Scheme - Default/Mariana.sublime-color-scheme",
"detect_indentation": false,
"font_size": 14,
"ignored_packages":
[
"Vintage"
],
"tab_size": 2,
"theme": "Adaptive.sublime-theme",
"translate_tabs_to_spaces": true
}
# KeyBindings
[
{"keys": ["tab"], "command": "expand_abbreviation_by_tab", "context":
[
{ "operand": "source.js", "operator": "equal", "match_all": true, "key": "selector" },
{ "match_all": true, "key": "selection_empty" },
{ "operator": "equal", "operand": false, "match_all": true, "key": "has_next_field" },
{ "operand": false, "operator": "equal", "match_all": true, "key": "auto_complete_visible" },
{ "match_all": true, "key": "is_abbreviation" }
]
},
{ "keys": ["super+`"], "command": "js_prettier" },
{ "keys": ["super+e"], "command": "toggle_side_bar" },
]
############### PACKAGE #####################
# JsPrettier
{
"auto_format_on_save": true,
"prettier_cli_path": "/Users/walli/.nvm/versions/node/v8.12.0/bin/prettier",
"node_path": "/Users/walli/.nvm/versions/node/v8.12.0/bin/node",
"prettier_options": {
"extensions": ["js", "jsx"],
"semi": true,
// Fit code within this line limit
"printWidth": 80,
// Number of spaces it should use per tab
"tabWidth": 2,
"useTabs": false,
"arrowParens": "avoid",
"useFlowParser": false,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"configLocations": ["${home_path}/.prettierrc", "${folder}/.prettierrc"]
},
}
# sublime linter : eslint
{
"styles": [
{
"mark_style": "outline",
"priority": 1,
"icon": "dot",
"scope": "region.yellowish markup.changed.sublime_linter markup.warning.sublime_linter",
"types": ["warning"]
},
{
"mark_style": "outline",
"priority": 1,
"icon": "dot",
"scope": "region.redish markup.deleted.sublime_linter markup.error.sublime_linter",
"types": ["error"]
},
{
"priority": 1,
"icon": "dot",
"mark_style": "outline"
}
],
"linters": {
"eslint": {
"env": {"PATH":"/usr/local/bin/"}
},
"stylelint": {
"env": {"PATH":"/usr/local/bin/"}
}
}
}