You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/emmylua_code_analysis/resources/schema.json
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,7 @@
138
138
"arrayIndex": true,
139
139
"docBaseConstMatchBaseType": true,
140
140
"metaOverrideFileDefine": true,
141
+
"requireExportGlobal": false,
141
142
"requirePath": false,
142
143
"typeCall": false
143
144
}
@@ -1044,6 +1045,11 @@
1044
1045
"type": "boolean",
1045
1046
"default": true
1046
1047
},
1048
+
"requireExportGlobal": {
1049
+
"description": "This option limits the visibility of third-party libraries.\n\nWhen enabled, third-party libraries must use `---@export global` annotation to be importable (i.e., no diagnostic errors and visible in auto-import).",
1050
+
"type": "boolean",
1051
+
"default": false
1052
+
},
1047
1053
"requirePath": {
1048
1054
"description": "Whether to enable strict mode require path.",
Copy file name to clipboardExpand all lines: crates/emmylua_code_analysis/resources/std/package.lua
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,7 @@ package.preload = {}
101
101
package.loaders= {}
102
102
103
103
---@version>5.2
104
+
---
104
105
--- A table used by require to control how to load modules.
105
106
---
106
107
--- Each entry in this table is a *searcher function*. When looking for a
@@ -170,10 +171,10 @@ package.searchers = {}
170
171
---@returnstring
171
172
functionpackage.searchpath(name, path, sep, rep) end
172
173
174
+
---@version5.1,JIT
173
175
---
174
176
---Sets a metatable for `module` with its `__index` field referring to the global environment, so that this module inherits values from the global environment. To be used as an option to function `module` .
@@ -136,32 +137,29 @@ function table.pack(...) end
136
137
---@deprecated
137
138
functiontable.foreach(list, callback) end
138
139
139
-
140
+
---@version5.1,JIT
140
141
---
141
142
---Executes the given f over the numerical indices of table. For each index, f is called with the index and respective value as arguments. Indices are visited in sequential order, from 1 to n, where n is the size of the table. If f returns a non-nil value, then the loop is broken and this value is returned as the result of foreachi.
0 commit comments