1
0
Files
frost-zx.github.io/docs/content/fix-eslint-unexpected-token-right-angle-bracket-error.md
2025-10-13 10:20:34 +08:00

28 lines
614 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "解决 ESLint 提示“Parsing error: Unexpected token <”的问题"
date: 2025-03-09T22:32:22Z
lastmod: 2025-10-12T18:14:59Z
tags: [开发,Web 前端,JavaScript,配置]
---
# 解决 ESLint 提示“Parsing error: Unexpected token <”的问题
## 参考资料
- [error Parsing error: Unexpected token &lt; · Issue #447 · jsx-eslint/eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react/issues/447)
## 解决方法
修改 ESLint 配置文件(`.eslintrc.js`
```json
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
}
```