Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--stream 不支持 HTML #344

Open
harttle opened this issue Mar 26, 2019 · 0 comments
Open

--stream 不支持 HTML #344

harttle opened this issue Mar 26, 2019 · 0 comments

Comments

@harttle
Copy link
Member

harttle commented Mar 26, 2019

安装 fecs@1.6.4,执行命令:

fecs check --stream < a.html

产生错误:

fecs  INFO current-file.js (1 message)
fecs ERROR → line 1, col 2: Parsing error: Unexpected token> 1 | <!DOCTYPE html>    |  ^  2 | <html lang="en">  3 | <head>  4 |   <meta charset="UTF-8">

fecs  INFO Linter found 1 error in 1 of 1 file.
fecs@1.6.4: 251.727ms

预期:能够报告 HTML 中的错误,而不是解析 HTML 失败。附上 a.html 内容:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title></title>
</head>
<body>
<script>
console.log(1,2)
</script>
</body>
</html>

以上 HTML 为例,CSS 也有同样的问题。JS 和 TypeScript 表现正常。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant