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

More environment variables #48

Closed
wants to merge 6 commits into from
Closed

More environment variables #48

wants to merge 6 commits into from

Conversation

Xerillio
Copy link
Contributor

Fixes #47 by adding environment variables corresponding to the existing CLI options as well as adding a couple of extra variables to allow more control of the output - EFF_RULE_SEARCH_LINK and EFF_CODE_FRAME_OPTIONS.

Using the environment variable 'EFF_RULE_SEARCH_LINK' it's now possible
to use a different website to link rules to that are not part of the
standard ESLint rules. It also means you can link to a different search
engine than Google. Google is kept as fallback when the environment
variable isn't set.
Using the environment variable 'EFF_CODE_FRAME_OPTIONS' it's now
possible to change the options for how the babel code frames are shown
in the console.
Using the environment variable 'EFF_NO_SOURCE' it's now possible to
disable showing the source code just like the passed argument
'eff-no-source'. The passed argument takes precedence. This means if
the argument is given, the source output is disabled no matter the
value given in the environment variable.
Using the environment variable 'EFF_BY_ISSUE' it's now possible to
group the lint output by issue just like the passed argument 'eff-by-
issue'. The passed argument takes precedence, meaning if the argument is
given, the environment variable is ignored. If not, the value of the
environment variable dictates the behavior.
Using the environment variable 'EFF_FILTER' it's now possible to only
output errors/warnings for a specific rule given just like the passed
CLI option 'eff-filter'. The CLI option takes precedence, meaning if the
option is given, the environment variable is ignored. If not, the value
of the environment variable dictates the behavior.
@Xerillio
Copy link
Contributor Author

Xerillio commented May 2, 2022

Closing. Moved to the correct repo instead: royriojas/eslint-formatter-friendly#10

@Xerillio Xerillio closed this May 2, 2022
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

Successfully merging this pull request may close these issues.

Parameters after double-dash not working
1 participant