简体   繁体   English

如何将jshint和jscs的配置转换为eslint?

[英]How to convert configs from jshint and jscs to eslint?

I tried to use polyjuice tool for this task: 我尝试使用多汁工具完成此任务:

polyjuice --jshint .jshintrc --jscs .jscsrc > .eslintrc

It doesn't work correctly. 它不能正常工作。

What error message(s) are you getting? 您收到什么错误消息?

To run Polyjuice from the command line, be sure to install the package globally: 要从命令行运行Polyjuice,请确保全局安装该软件包:

$ npm install -g polyjuice

You should then be able to convert your JSHint rules to ESLint by running the following command in any directory that contains a valid config: 然后,您应该能够将您的转换JSHint规则ESLint通过运行在包含一个有效配置的任何目录下面的命令:

$ polyjuice --jshint .jshintrc > .eslintrc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM