-
Notifications
You must be signed in to change notification settings - Fork 97
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
Feature request: JS support #57
Comments
I don't understand what you are asking for. do you want configuration as a js file? |
Yeah. // ...
// config
module.exports = {/*...*/} |
I'm not adding any more parsers, and i think there are some good reasons not to use javascript as configuration. but if you really want to do that you can pass in your own parser as documented in the readme. |
Using js module as configuration file is desired in many cases and is quite common nowadays. I also hope it be supported. |
You should have a look to https://github.com/davidtheclark/cosmiconfig |
Interesting. Thank you. |
having a configuration file that is a turing complete language, with file system and network access, is a security vulnerability waiting to happen. |
That would be nice to support commonjs js.
Some library and modules might require a smart configuration that can involve regex for example (famous eg: webpack). That would be nice to have support for JS exported module too. Are you open to this enhancement?
I plan to use rc for cssnext and stylelint and it would be nice (especially for cssnext config that might require other modules/files).
The text was updated successfully, but these errors were encountered: