forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-editor-failing-js.txt
More file actions
44 lines (40 loc) · 1.16 KB
/
run-editor-failing-js.txt
File metadata and controls
44 lines (40 loc) · 1.16 KB
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
var container = document.getElementById("container");
var cssCode = [
'body {',
' margin: 0px;',
' padding: 0px;',
'}'
].join('\n');
Monaco.Editor.create(container, {
value: cssCode,
mode: "text/css"
});
require(['vs/platform/platform', 'vs/editor/modes/modesExtensions'],
function (Platform, ModesExtensions) {
var modesRegistry = Platform.Registry.as(ModesExtensions.Extensions.EditorModes);
// Try 'ignore', 'warning', and 'error'
modesRegistry.configureMode('text/css', {
"validationSettings": {
"lint": {
compatibleVendorPrefixes": "warning",
vendorPrefix": "warning",
duplicateProperties": "warning",
emptyRules": "warning",
importStatement": "ignore",
boxModel": "ignore",
universalSelector": "warning",
zeroUnits": "ignore",
fontFaceProperties": "warning",
hexColorLength": "error",
argumentsInColorFunction": "error",
unknownProperties": "warning",
unknownVendorSpecificProperties": "warning",
propertyIgnoredDueToDisplay": "warning",
important": "ignore",
float": "ignore",
idSelector": "ignore"
}
}
});
}
);