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

Add option to read configuration from a file #21

Open
apoblock opened this issue Nov 30, 2020 · 0 comments
Open

Add option to read configuration from a file #21

apoblock opened this issue Nov 30, 2020 · 0 comments

Comments

@apoblock
Copy link

The configuration options currently can be specified only via command line - it will be useful to allow using a configuration file. The format could look like this:

{
  "templateDelimiters": [ ["{", "}"] ],
  "attributes": [ "alt", "placeholder", "title", "label", "friendly-message" ],
  "ignoreTags": [ "style", "script", "pre", "code" ],
  "include": [ "**/mycomponents/**/*.html", "myfile.html5" ],
  "exclude": [ "**/__mytests__/**/*.html", "test1.html" ]
}

Additional CLI parameters would be needed --config name of the configuration file (with default to something like .i18n-lint.json), and --init - allowing to generate basic 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

1 participant