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

Configuration via file #23

Open
darekkay opened this issue Apr 17, 2018 · 1 comment
Open

Configuration via file #23

darekkay opened this issue Apr 17, 2018 · 1 comment

Comments

@darekkay
Copy link

Hi, thanks for this nice little utility :)

I'd like to configure ntl sytem-wide without the need of adding option parameters for each call, e.g. ntl -A -s 20. A bash alias would work, but something like a .ntlrc would be more convenient. Prettier uses cosmiconfig for this, so you get a lot of configuration methods:

  • A .prettierrc file, written in YAML or JSON, with optional extensions: .yaml/.yml/.json/.js.
  • A prettier.config.js file that exports an object.
  • A "prettier" key in your package.json file.

The configuration file will be resolved starting from the location of the file being formatted, and searching up the file tree until a config file is (or isn't) found.

What do you think about this?

@ruyadorno
Copy link
Owner

hi @darekkay sorry for the very late response 😬

I think the idea is great and would def welcome a contribution to add support to it 😄

For reference to other people that might look into this issue, the "bash alias" would be something like:

alias ntl="ntl -A -s 20"

that you can add to your .bash_profile / .bashrc (or equivalent file) in order to have different global options.

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

No branches or pull requests

2 participants