asp.net-core-mvc - 如何 lint .cshtml 文件?
问题描述
使用 ESLint,很容易对 *.js 文件进行 lint。使用 html 或 script-tag 之类的插件,在 *.html 文件中的标签内检查 JavaScript 代码也很简单。
但是,当涉及到 *.cshtml 文件中的脚本标签时,我被卡住了。
有谁知道如何 lint *.cshtml 文件或为此推荐不同的 linting 工具?
解决方案
推荐阅读
- assembly - x86 程序集加密到解密
- javascript - 防止复制过去并在 Blackboard 中单击鼠标右键
- c# - 即使我们关闭应用程序,WPF应用程序也会运行后台,任何人都可以建议我
- python - 在 pythonanywhere.com 中运行 WSGI 应用程序时出错
- python - 用美丽的汤在 HTML 标记之间获取文本
- jquery - 仅将类添加到视口中的元素
- android - 如何在 Android 应用程序的日历视图中添加事件?
- python - 如何在 python 上使用带有 selenium 的希伯来语?
- awk - 根据使用 awk 对先前记录的计数更新特定列中的字段
- sql - 如何计算分组查询中每行 COUNT(*) 总和的百分比?- SQL