-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtest.html
More file actions
24 lines (22 loc) · 643 Bytes
/
Copy pathtest.html
File metadata and controls
24 lines (22 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Title</title>
<script src="/linter.min.js"></script>
<script type="module">
const linter = new eslint.Linter();
const messages = linter.verify(
"var foo;",
{
rules: {
semi: ["error", "never"]
}
},
{ filename: "foo.js" }
);
document.body.textContent = JSON.stringify(messages);
</script>
</head>
<body></body>
</html>