polygonplanet/sublime-text-eslint

Possible to specify custom rules directory?

Closed this issue · 4 comments

leslc commented

Hello,

Is there a setting in Sublime preferences for ESLINT (or separate file) that makes it possible to specify a custom rules directory (basically passing in a value for "--rulesdir" to eslint).

Thanks!

Yes, this plugin is using the ESLint CLIEngine.
And I found rulePaths option that is same as --rulesdir.

leslc commented
leslc commented

I tried to use this it didn't work as expected. Rereading the docs made me realize this is where CUSTOM rules are defined, which are then specified in your rules files to enable or not.

For the location of a eslintrc file I think the config is "-c", or "configFile" in the CLI. If it's easy to add, this would be useful. Or I can submit a PR later on.

Thanks!