forked from ganemone/NodeRequirer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NodeRequirer.sublime-settings
165 lines (149 loc) · 4.99 KB
/
NodeRequirer.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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
// Requiring an item that matches a key in the dictionary
// will transform the rendered require to the value.
// E.g. var _ = require('lodash') if {'lodash': '_'}
"alias": {
"backbone": "Backbone",
"backbone.marionette": "Marionette",
"bluebird": "Promise",
"cheerio": "$",
"classNames": "classnames",
"ember": "Ember",
"handlebars": "Handlebars",
"highland": "hl",
"hogan.js": "Hogan",
"leaflet": "L",
"lodash": "_",
"string": "S",
"jquery": "$",
"jquery-ui": "ui",
"knockout": "ko",
"mustache": "Mustache",
"node-tap": "test",
"openlayers": "ol",
"pouchdb": "PouchDB",
"prova": "test",
"es6-promise": "Promise",
"raven-js": "Raven",
"native-promise-only": "Promise",
"node-uuid": "uuid",
"ractive": "Ractive",
"immutable": "Immutable",
"ramda": "R",
"react": "React",
"react-dom": "ReactDOM",
"react-addons-clone-with-props": "cloneWithProps",
"react-addons-create-fragment": "createFragment",
"react-addons-css-transition-group": "CSSTransitionGroup",
"react-addons-linked-state-mixin": "LinkedStateMixin",
"react-addons-pure-render-mixin": "PureRenderMixin",
"react-addons-shallow-compare": "shallowCompare",
"react-addons-transition-group": "TransitionGroup",
"react-addons-update": "update",
"roslib": "ROS",
"rsvp": "RSVP",
"underscore": "_",
"socket.io": "io",
"superagent": "request",
"spine": "Spine",
"tap": "test",
"three": "THREE",
"q": "Q",
"qunit": "QUnit",
"zepto": "$",
"graceful-fs": "fs",
"findup-sync": "findup",
"mime-types": "mime",
"gulp-util": "gutil",
"iconv-lite": "iconv",
"event-stream": "es",
"stream-line-wrapper": "LineWrapper",
"stream-to-array": "streamToArray",
"raw-body": "getRawBody",
"aws-sdk": "AWS",
"connect-dynamodb": "DynamoDBStore",
"connect-mysql": "MySQLStore",
"connect-sdb": "SdbStore",
"connect-sqlite3": "SQLiteStore",
"package.json": "pkg",
"tape": "test",
"sequelize": "Sequelize",
"r": "rethinkdb",
"r": "rethinkdbdash",
"underscore.string": "s"
},
// Common "alias" patterns that can be expressed using regular expressions
"alias-pattern": {
"gulp-(.+)": "\\1",
"lodash\\.(.+)": "\\1"
},
// Use 'single' or "double" quotes
"quotes": "single",
// Don't insert semicolons at the end of lines
"semicolon_free": false,
// Use 'var', 'const', or 'let' variable declarations
"var": "var",
// File extensions to omit when doing a local require.
// E.g. require('./filename') for ./filename.js if js is omited.
"omit_extensions": ["js", "jsx", "tsx", "mjs"],
"importable_extensions": [
// plain js
"js", "jsx", "tsx", "mjs",
// css
"css", "less", "scss",
// images
"svg", "jpg", "png", "gif",
// templates
"hbs", "html", "ejs",
// schemas
"yaml", "json", "xml"
],
// Use Bluebird style promisification of libraries
// This setting is best set per-project
"usePromisify": false,
// Settings that allow you to override what promisify wrapper is used
"promise": {
"promisify": "Promise.promisify",
"promisifyAll": "Promise.promisifyAll"
},
// A list of packages that should be promisified with Promise.promisify
"promisify": [
"which",
"rimraf"
],
// A list of packages that should be promisified with Promise.promisifyAll
"promisifyAll": [
"fs",
"graceful-fs",
"dns",
"zlib",
"redis",
"mongodb",
"mongoose",
"mkdirp",
"winston",
"xml2js",
"jsdom",
"fs-extra",
"prompt",
"nodemailer",
"ncp",
"pg"
],
// Use ES6 Import Style. Use true to always use es6, false for always require
// or 'detect' to determine it based on the file context
// In detect mode NodeRequirer will parse the file to determine whether require/imports are used.
"import": "detect",
// Whether to prefer using ES6 imports or require() when neither are used in a file.
// Set to true for ES6 and false for Node require.
"detect_prefer_imports": false,
// Allow for tab completion through require statement
"snippets": true,
// find and import undefined vars with ESLint
// when "Require From Word" called without selected word
"import_undefined_vars": false,
// for use with https://github.com/toptal/component-resolver-webpack
// (allows `<foldername>.js` to be used in place of `index.js`)
// instead of `moduleName/moduleName.js` import just `moduleName`
"dirname_as_index": false
}