How to convert configs from jshint and jscs to eslint?

1.4k Views Asked by At

I tried to use polyjuice tool for this task:

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

It doesn't work correctly.

1

There are 1 best solutions below

1
rjb On

What error message(s) are you getting?

To run Polyjuice from the command line, be sure to install the package globally:

$ 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:

$ polyjuice --jshint .jshintrc > .eslintrc