【发布时间】:2018-05-14 11:36:00
【问题描述】:
我的项目中有一个模板文件,在运行 eslint 时,我遇到了各种问题。其中一些是-
error Parsing error: Unexpected token !
error Parsing error: Unexpected token <
为了克服这个问题,我尝试在没有帮助的情况下使用eslint-plugin-ejs。我也访问过下面的 SO 链接 -
Turning off eslint rule for a specific file
ESLint Parsing error: Unexpected token
Mysterious ESLint Parsing Error
还有更多,但再次没有运气。现在我只想将此文件从 eslint 中排除,但找不到这样做的方法。任何帮助将不胜感激。
【问题讨论】:
标签: node.js ejs eslint eslintrc eslintignore