brenolf / polyjuice

A utility to convert JSHint and JSCS files into ESLint files and vice-versa
MIT License
275 stars 15 forks source link

Add ESLint conversion support #16

Closed brenolf closed 9 years ago

ebramanti commented 9 years ago

:+1: :exclamation: I've been looking for something exactly like this!

brenolf commented 9 years ago

@jadengore it should be done by the end of this week, because there are so many rules to be transpiled!

brenolf commented 9 years ago

@jadengore let me know if it works

ebramanti commented 9 years ago

@brenolf I no longer need the solution, but I'll run it on my project now and see how it goes.

ebramanti commented 9 years ago

Just as an update, I tried it and I think polyjuice has trouble with custom rules. Got this:

/Users/Edward/.../eslint.js:351
      return value[1].properties === 'never'
                     ^
TypeError: Cannot read property 'properties' of undefined
brenolf commented 9 years ago

@jadengore actually it's another issue with camelcase I didn't account for. Thanks for noticing! As a matter of fact, I don't know how it'll go with custom rules.

Would you mind sharing your .eslintrc file later on?