5 |
6 |
7 | replit
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/script.js:
--------------------------------------------------------------------------------
1 | let p1 = new Promise((resolve, reject) => {
2 | setTimeout(() => {
3 | console.log("Resolved after 2 seconds")
4 | resolve(56)
5 | }, 2000)
6 | })
7 |
8 | p1.then((value) => {
9 | console.log(value)
10 | return new Promise((resolve, reject) => {
11 | setTimeout(() => { resolve("Promise 2") }, 2000)
12 | })
13 | })
14 | .then((value) => {
15 | console.log("We are done")
16 | return 2
17 | })
18 | .then((value)=>{
19 | console.log("Now we are pakka done")
20 | })
21 |
--------------------------------------------------------------------------------
/.replit:
--------------------------------------------------------------------------------
1 | hidden=[".config"]
2 |
3 | # hosting is currently hardcoded for this language
4 | # [hosting]
5 | # route = "/"
6 | # directory= "/"
7 |
8 | [nix]
9 | channel = "stable-21_11"
10 |
11 | [languages.html]
12 | pattern = "**/*.html"
13 | [languages.html.languageServer]
14 | start = "vscode-html-language-server --stdio"
15 | [languages.html.languageServer.initializationOptions]
16 | provideFormatter = true
17 | [languages.html.languageServer.configuration.html]
18 | customData = [ ]
19 | autoCreateQuotes = true
20 | autoClosingTags = true
21 | mirrorCursorOnMatchingTag = false
22 |
23 | [languages.html.languageServer.configuration.html.completion]
24 | attributeDefaultValue = "doublequotes"
25 |
26 | [languages.html.languageServer.configuration.html.format]
27 | enable = true
28 | wrapLineLength = 120
29 | unformatted = "wbr"
30 | contentUnformatted = "pre,code,textarea"
31 | indentInnerHtml = false
32 | preserveNewLines = true
33 | indentHandlebars = false
34 | endWithNewline = false
35 | extraLiners = "head, body, /html"
36 | wrapAttributes = "auto"
37 | templating = false
38 | unformattedContentDelimiter = ""
39 |
40 | [languages.html.languageServer.configuration.html.suggest]
41 | html5 = true
42 |
43 | [languages.html.languageServer.configuration.html.validate]
44 | scripts = true
45 | styles = true
46 |
47 | [languages.html.languageServer.configuration.html.hover]
48 | documentation = true
49 | references = true
50 |
51 | [languages.html.languageServer.configuration.html.trace]
52 | server = "off"
53 |
54 | [languages.javascript]
55 | pattern = "**/{*.js,*.jsx,*.ts,*.tsx,*.mjs,*.cjs}"
56 | [languages.javascript.languageServer]
57 | start = "typescript-language-server --stdio"
58 |
59 | [languages.css]
60 | pattern = "**/{*.less,*.scss,*.css}"
61 | [languages.css.languageServer]
62 | start = "vscode-css-language-server --stdio"
63 | [languages.css.languageServer.configuration.css]
64 | customData = [ ]
65 | validate = true
66 |
67 | [languages.css.languageServer.configuration.css.completion]
68 | triggerPropertyValueCompletion = true
69 | completePropertyWithSemicolon = true
70 |
71 | [languages.css.languageServer.configuration.css.hover]
72 | documentation = true
73 | references = true
74 |
75 | [languages.css.languageServer.configuration.css.lint]
76 | # Configure linting
77 | # ignore = don't show any warning or error
78 | # warning = show yellow underline
79 | # error = show red underline
80 | argumentsInColorFunction = "error" # Invalid number of parameters
81 | boxModel = "ignore" # Do not use width or height when using padding or border
82 | compatibleVendorPrefixes = "ignore" # When using a vendor-specific prefix make sure to also include all other vendor-specific properties"
83 | duplicateProperties = "warning" # Do not use duplicate style definitions
84 | emptyRules = "warning" # Do not use empty rulesets
85 | float = "ignore" # Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.
86 | fontFaceProperties = "warning" # @font-face rule must define 'src' and 'font-family' properties
87 | hexColorLength = "error" # Hex colors must consist of three, four, six or eight hex numbers
88 | idSelector = "ignore" # Selectors should not contain IDs because these rules are too tightly coupled with the HTML.
89 | ieHack = "ignore" # IE hacks are only necessary when supporting IE7 and older
90 | important = "ignore" # Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.
91 | importStatement = "ignore" # Import statements do not load in parallel
92 | propertyIgnoredDueToDisplay = "warning" # Property is ignored due to the display
93 | universalSelector = "ignore" # The universal selector (*) is known to be slow
94 | unknownAtRules = "warning" # Unknown at-rule
95 | unknownProperties = "warning" # Unknown property.
96 | validProperties = [ ] # add some properties that the linter doesn't know about
97 | unknownVendorSpecificProperties = "ignore" # Unknown vendor specific property.
98 | vendorPrefix = "warning" # When using a vendor-specific prefix also include the standard property
99 | zeroUnits = "ignore" # No unit for zero needed
100 |
101 | [languages.css.languageServer.configuration.css.trace]
102 | server = "off"
103 |
104 | [languages.css.languageServer.configuration.scss]
105 | validate = true
106 |
107 | [languages.css.languageServer.configuration.scss.completion]
108 | triggerPropertyValueCompletion = true
109 | completePropertyWithSemicolon = true
110 |
111 | [languages.css.languageServer.configuration.scss.hover]
112 | documentation = true
113 | references = true
114 |
115 | [languages.css.languageServer.configuration.scss.lint]
116 | # Configure linting
117 | # ignore = don't show any warning or error
118 | # warning = show yellow underline
119 | # error = show red underline
120 | argumentsInColorFunction = "error" # Invalid number of parameters
121 | boxModel = "ignore" # Do not use width or height when using padding or border
122 | compatibleVendorPrefixes = "ignore" # When using a vendor-specific prefix make sure to also include all other vendor-specific properties"
123 | duplicateProperties = "warning" # Do not use duplicate style definitions
124 | emptyRules = "warning" # Do not use empty rulesets
125 | float = "ignore" # Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.
126 | fontFaceProperties = "warning" # @font-face rule must define 'src' and 'font-family' properties
127 | hexColorLength = "error" # Hex colors must consist of three, four, six or eight hex numbers
128 | idSelector = "ignore" # Selectors should not contain IDs because these rules are too tightly coupled with the HTML.
129 | ieHack = "ignore" # IE hacks are only necessary when supporting IE7 and older
130 | important = "ignore" # Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.
131 | importStatement = "ignore" # Import statements do not load in parallel
132 | propertyIgnoredDueToDisplay = "warning" # Property is ignored due to the display
133 | universalSelector = "ignore" # The universal selector (*) is known to be slow
134 | unknownAtRules = "warning" # Unknown at-rule
135 | unknownProperties = "warning" # Unknown property.
136 | validProperties = [ ] # add some properties that the linter doesn't know about
137 | unknownVendorSpecificProperties = "ignore" # Unknown vendor specific property.
138 | vendorPrefix = "warning" # When using a vendor-specific prefix also include the standard property
139 | zeroUnits = "ignore" # No unit for zero needed"
140 |
141 | [languages.css.languageServer.configuration.less]
142 | validate = true
143 |
144 | [languages.css.languageServer.configuration.less.completion]
145 | triggerPropertyValueCompletion = true
146 | completePropertyWithSemicolon = true
147 |
148 | [languages.css.languageServer.configuration.less.hover]
149 | documentation = true
150 | references = true
151 |
152 | [languages.css.languageServer.configuration.less.lint]
153 | # Configure linting
154 | # ignore = don't show any warning or error
155 | # warning = show yellow underline
156 | # error = show red underline
157 | argumentsInColorFunction = "error" # Invalid number of parameters
158 | boxModel = "ignore" # Do not use width or height when using padding or border
159 | compatibleVendorPrefixes = "ignore" # When using a vendor-specific prefix make sure to also include all other vendor-specific properties"
160 | duplicateProperties = "warning" # Do not use duplicate style definitions
161 | emptyRules = "warning" # Do not use empty rulesets
162 | float = "ignore" # Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes.
163 | fontFaceProperties = "warning" # @font-face rule must define 'src' and 'font-family' properties
164 | hexColorLength = "error" # Hex colors must consist of three, four, six or eight hex numbers
165 | idSelector = "ignore" # Selectors should not contain IDs because these rules are too tightly coupled with the HTML.
166 | ieHack = "ignore" # IE hacks are only necessary when supporting IE7 and older
167 | important = "ignore" # Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored.
168 | importStatement = "ignore" # Import statements do not load in parallel
169 | propertyIgnoredDueToDisplay = "warning" # Property is ignored due to the display
170 | universalSelector = "ignore" # The universal selector (*) is known to be slow
171 | unknownAtRules = "warning" # Unknown at-rule
172 | unknownProperties = "warning" # Unknown property.
173 | validProperties = [ ] # add some properties that the linter doesn't know about
174 | unknownVendorSpecificProperties = "ignore" # Unknown vendor specific property.
175 | vendorPrefix = "warning" # When using a vendor-specific prefix also include the standard property
176 | zeroUnits = "ignore" # No unit for zero needed"
177 |
178 | [gitHubImport]
179 | requiredFiles = [".replit", "replit.nix", ".config"]
--------------------------------------------------------------------------------