首页 > 解决方案 > 如何 lint .cshtml 文件?

问题描述

使用 ESLint,很容易对 *.js 文件进行 lint。使用 html 或 script-tag 之类的插件,在 *.html 文件中的标签内检查 JavaScript 代码也很简单。

但是,当涉及到 *.cshtml 文件中的脚本标签时,我被卡住了。

有谁知道如何 lint *.cshtml 文件或为此推荐不同的 linting 工具?

标签: asp.net-core-mvceslintlint

解决方案


推荐阅读