We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用@tarojs/[email protected]创建taro项目
Desktop: taro init test 👽 Taro v2.0.6 Taro 即将创建一个新项目! Need help? Go and open issue: https://github.com/NervJS/taro/issues/new ✔ 拉取远程模板仓库成功! ? 请输入项目介绍! 233 ? 是否需要使用 TypeScript ? Yes ? 请选择 CSS 预处理器(Sass/Less/Stylus) Sass ? 请选择模板 默认模板
用vscode打开项目eslint插件提示 'Config' is defined but never used. Allowed unused vars must match
vscode
eslint
code test
Config
/** * 这段注释后可以贴代码 * 提供完整可复现的代码和整理好代码格式,有助于我们快速定位问题,节省你我时间 * 代码提供不全或代码格式混乱的 issues 【有可能会被忽略】 * * 查看如何插入代码:https://coding.net/help/doc/project/markdown.html#i-5 */
在不关闭unused vars这条规则的前提下,能正确的进行错误提示
unused vars
'Config' is defined but never used. Allowed unused vars must match /Taro/.eslint(no-unused-vars)
Taro CLI 2.0.6 environment info: System: OS: macOS 10.15.2 Shell: 5.7.1 - /bin/zsh Binaries: Node: 10.16.3 - /usr/local/bin/node Yarn: 1.22.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm npmPackages: @tarojs/components: 2.0.6 => 2.0.6 @tarojs/components-qa: 2.0.6 => 2.0.6 @tarojs/mini-runner: 2.0.6 => 2.0.6 @tarojs/mobx: ^2.0.6 => 2.0.6 @tarojs/mobx-h5: ^2.0.6 => 2.0.6 @tarojs/mobx-rn: ^2.0.6 => 2.0.6 @tarojs/router: 2.0.6 => 2.0.6 @tarojs/taro: 2.0.6 => 2.0.6 @tarojs/taro-alipay: 2.0.6 => 2.0.6 @tarojs/taro-h5: 2.0.6 => 2.0.6 @tarojs/taro-qq: 2.0.6 => 2.0.6 @tarojs/taro-quickapp: 2.0.6 => 2.0.6 @tarojs/taro-rn: 2.0.6 => 2.0.6 @tarojs/taro-swan: 2.0.6 => 2.0.6 @tarojs/taro-tt: 2.0.6 => 2.0.6 @tarojs/taro-weapp: 2.0.6 => 2.0.6 @tarojs/webpack-runner: 2.0.6 => 2.0.6 eslint-config-taro: 2.0.6 => 2.0.6 eslint-plugin-taro: 2.0.6 => 2.0.6 nerv-devtools: ^1.5.5 => 1.5.6 nervjs: ^1.5.5 => 1.5.6 stylelint-config-taro-rn: 2.0.6 => 2.0.6 stylelint-taro-rn: 2.0.6 => 2.0.6 npmGlobalPackages: typescript: 3.7.3
尝试按照issues 5207里提到的方法去解决,但是会出现另一个错误 'Taro' is defined but never used.eslint(@typescript-eslint/no-unused-vars)
如果您有功能上的建议,可以提到 FeatHub 使用上的问题,欢迎在「Taro 社区」一起交流
如果您有功能上的建议,可以提到 FeatHub
使用上的问题,欢迎在「Taro 社区」一起交流
The text was updated successfully, but these errors were encountered:
欢迎提交 Issue~
如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏
如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。
Good luck and happy coding~
Sorry, something went wrong.
- "no-unused-vars": ["error", { "varsIgnorePattern": "Taro" }] + "@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "Taro" }]
No branches or pull requests
问题描述
使用@tarojs/[email protected]创建taro项目
用
vscode
打开项目eslint
插件提示 'Config' is defined but never used. Allowed unused vars must match复现步骤
code test
Config
还是提示 'Config' is defined but never used. Allowed unused vars must match期望行为
在不关闭
unused vars
这条规则的前提下,能正确的进行错误提示报错信息
'Config' is defined but never used. Allowed unused vars must match /Taro/.eslint(no-unused-vars)
系统信息
Taro CLI 2.0.6 environment info:
System:
OS: macOS 10.15.2
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 10.16.3 - /usr/local/bin/node
Yarn: 1.22.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
npmPackages:
@tarojs/components: 2.0.6 => 2.0.6
@tarojs/components-qa: 2.0.6 => 2.0.6
@tarojs/mini-runner: 2.0.6 => 2.0.6
@tarojs/mobx: ^2.0.6 => 2.0.6
@tarojs/mobx-h5: ^2.0.6 => 2.0.6
@tarojs/mobx-rn: ^2.0.6 => 2.0.6
@tarojs/router: 2.0.6 => 2.0.6
@tarojs/taro: 2.0.6 => 2.0.6
@tarojs/taro-alipay: 2.0.6 => 2.0.6
@tarojs/taro-h5: 2.0.6 => 2.0.6
@tarojs/taro-qq: 2.0.6 => 2.0.6
@tarojs/taro-quickapp: 2.0.6 => 2.0.6
@tarojs/taro-rn: 2.0.6 => 2.0.6
@tarojs/taro-swan: 2.0.6 => 2.0.6
@tarojs/taro-tt: 2.0.6 => 2.0.6
@tarojs/taro-weapp: 2.0.6 => 2.0.6
@tarojs/webpack-runner: 2.0.6 => 2.0.6
eslint-config-taro: 2.0.6 => 2.0.6
eslint-plugin-taro: 2.0.6 => 2.0.6
nerv-devtools: ^1.5.5 => 1.5.6
nervjs: ^1.5.5 => 1.5.6
stylelint-config-taro-rn: 2.0.6 => 2.0.6
stylelint-taro-rn: 2.0.6 => 2.0.6
npmGlobalPackages:
typescript: 3.7.3
补充信息
尝试按照issues 5207里提到的方法去解决,但是会出现另一个错误
'Taro' is defined but never used.eslint(@typescript-eslint/no-unused-vars)
The text was updated successfully, but these errors were encountered: