roadhump / SublimeLinter-contrib-eslint_d

This linter plugin for SublimeLinter provides an interface to eslint_d
MIT License
40 stars 13 forks source link

Support for .eslintrc alternative filenames #12

Open silverwind opened 8 years ago

silverwind commented 8 years ago

ESLint added support for alternative configuration files names like .eslintrc.yaml. It'd be cool if this plugin could support them (I see it's hardcoded to .eslintrc right now).

thefourtheye commented 8 years ago

@silverwind PTAL at #13. I proposed a possible solution to this problem.

trongthanh commented 7 years ago

I want this feature as well. My team prefer using .eslintrc.js instead of json.

I've tried #13 but it seems not working for project-wise eslint config. So I took latest SublimeLinter-contrib-eslint plugin approach and it seems working as expected. Here's how I modified linter.py:


cmd = ('eslint_d', '--format', 'compact', '--stdin', '--stdin-filename', '@')

# Remove config_file
# config_file = ('--config', get_config_file(), '~')

My guess is that this will let eslint_d look for the config file by itself and it will look for one of the known config file names from current folder outwards.