-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
taro doctor 命令检查项目时,输出eslint报错,但是单独使用npm run lint检查没有报错 #16025
Comments
This was referenced Jul 6, 2024
windows系统的原因,taro doctor没有读到.eslintrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个特性解决了什么问题?
taro doctor 命令检查项目时,输出eslint报错,但是单独使用npm run lint检查没有报错
报错信息:
检查 ESLint (以下为 ESLint 的输出)!
D:\work\project\group\b2b-mini-app\src\pages\index\index.tsx
24:5 error 'React' must be in scope when using JSX react/react-in-jsx-scope
24:21 error Unexpected usage of doublequote jsx-quotes
单独使用 npm run lint 命令 无任何报错
.eslintrc配置
{
.....,
"rules": {
"react/jsx-uses-react": 0,
"react/react-in-jsx-scope": 0,
"quotes": ["error", "single"],
"jsx-quotes": ["error", "prefer-double"],
......
}
报错信息报的事jsx的组件属性使用了双引号,但是我期望的就是js的字符串使用单引号,组件标签属性使用双引号。
还有使用react的报错我明明已经配置了0关闭,为何taro doctor使用eslint会报对应的错误?
这个 API 长什么样?
taro doctor 可以配置吗,或者只分析项目依赖、结构之类的
The text was updated successfully, but these errors were encountered: