IanVS / eslint-nibble

Ease into ESLint, by fixing one rule at a time
MIT License
787 stars 29 forks source link

Allow a custom .eslintrc file #27

Closed aboyton closed 8 years ago

aboyton commented 8 years ago

For our project we have two .eslintrcfiles, .eslintrc which is what we're currently enforcing and .eslintrc.nextwhich is where we'd like to be.

It would be nice if you could pass in a custom .eslintrc file to nibble like you can with ESLint—eslint -c .eslintrc.next.

IanVS commented 8 years ago

Seems reasonable. Would you like to submit a PR? Should just be a matter of adding the option to https://github.com/IanVS/eslint-nibble/blob/master/src/config/options.js, and then adding some flexibility around https://github.com/IanVS/eslint-nibble/blob/master/src/nibbler.js#L62 which is called from https://github.com/IanVS/eslint-nibble/blob/master/src/cli.js#L35. I'll try to get to it within the next week or so if you're not able.

aboyton commented 8 years ago

Thanks. I've had my first go at making a pull request to try an implement this. Please let me know if this works or not.