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

Allow rule config to be passed directly instead of by filename #30

Open
elidupuis opened this issue Sep 6, 2019 · 2 comments
Open

Allow rule config to be passed directly instead of by filename #30

elidupuis opened this issue Sep 6, 2019 · 2 comments

Comments

@elidupuis
Copy link

With ember-template-lint using .template-lintrc.js as the default configuration file (a JS module, not a JSON file), I think it makes sense to allow the configuration for this plugin to be passed in directly—instead of by filename.

For example, instead of the current example in the readme:

{'ConfigFile': __dirname + '/.eslint-template-lintrc.json'}

we could do something like this:

{ ConfigFile: require('.template-lintrc.js') },

Thoughts?

@jaydgruber
Copy link

#32 somewhat addressed this. At least you can do a .js file now, anyways

@rwjblue
Copy link
Member

rwjblue commented Mar 28, 2020

Ya, though I’d still want to allow an actual JSON string for config as well as a path to a config file.

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