Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .eslintrc alternative filenames #12

Open
silverwind opened this issue Jul 14, 2016 · 2 comments
Open

Support for .eslintrc alternative filenames #12

silverwind opened this issue Jul 14, 2016 · 2 comments

Comments

@silverwind
Copy link

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
Copy link

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

@trongthanh
Copy link

trongthanh commented Jul 21, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants