Skip to content

Commit 39002d1

Browse files
committed
prettier
1 parent e30c433 commit 39002d1

File tree

2 files changed

+31
-28
lines changed

2 files changed

+31
-28
lines changed

.eslintrc.cjs

+8-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ module.exports = {
1919
"import/order": "error",
2020
"import/no-duplicates": "error",
2121
"import/no-cycle": "error",
22-
"@typescript-eslint/no-unused-vars": ["error", {
23-
varsIgnorePattern: "^_",
24-
argsIgnorePattern: "^_",
25-
destructuredArrayIgnorePattern: "^_",
26-
}]
22+
"@typescript-eslint/no-unused-vars": [
23+
"error",
24+
{
25+
varsIgnorePattern: "^_",
26+
argsIgnorePattern: "^_",
27+
destructuredArrayIgnorePattern: "^_",
28+
},
29+
],
2730
},
2831
settings: {
2932
// 'import/resolver': {

README.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -521,32 +521,32 @@ You can use quickjs-emscripten directly from an HTML file in two ways:
521521

522522
1. Import it in an ES Module script tag
523523

524-
```html
525-
<!doctype html>
526-
<!-- Import from a ES Module CDN -->
527-
<script type="module">
528-
import { getQuickJS } from "https://esm.sh/[email protected]"
529-
const QuickJS = await getQuickJS()
530-
console.log(QuickJS.evalCode("1+1"))
531-
</script>
532-
```
524+
```html
525+
<!doctype html>
526+
<!-- Import from a ES Module CDN -->
527+
<script type="module">
528+
import { getQuickJS } from "https://esm.sh/[email protected]"
529+
const QuickJS = await getQuickJS()
530+
console.log(QuickJS.evalCode("1+1"))
531+
</script>
532+
```
533533

534534
1. In edge cases, you might want to use the IIFE build which provides QuickJS as the global `QJS`. You should probably use the ES module though, any recent browser supports it.
535535

536-
```html
537-
<!doctype html>
538-
<!-- Add a script tag to load the library as the QJS global -->
539-
<script
540-
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.global.js"
541-
type="text/javascript"
542-
></script>
543-
<!-- Then use the QJS global in a script tag -->
544-
<script type="text/javascript">
545-
QJS.getQuickJS().then((QuickJS) => {
546-
console.log(QuickJS.evalCode("1+1"))
547-
})
548-
</script>
549-
```
536+
```html
537+
<!doctype html>
538+
<!-- Add a script tag to load the library as the QJS global -->
539+
<script
540+
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.global.js"
541+
type="text/javascript"
542+
></script>
543+
<!-- Then use the QJS global in a script tag -->
544+
<script type="text/javascript">
545+
QJS.getQuickJS().then((QuickJS) => {
546+
console.log(QuickJS.evalCode("1+1"))
547+
})
548+
</script>
549+
```
550550

551551
### quickjs-emscripten-core, variants, and advanced packaging
552552

0 commit comments

Comments
 (0)