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

How we use option in .eslintrc.*? #16946

Closed
1 of 8 tasks
LwCoderNovice opened this issue Feb 28, 2023 · 2 comments
Closed
1 of 8 tasks

How we use option in .eslintrc.*? #16946

LwCoderNovice opened this issue Feb 28, 2023 · 2 comments
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion core Relates to ESLint's core APIs and features new syntax This issue is related to new syntax that has reached stage 4

Comments

@LwCoderNovice
Copy link

LwCoderNovice commented Feb 28, 2023

Syntax name

options

Syntax proposal URL

https://www.ecma-international.org/publications-and-standards/standards/ecma-404/

Example code

options: {
'output-file': '...',
'format': '...'
}

Implementation Checklist

  • Ecma262 update:
  • ESTree update:
  • Acorn update:
  • eslint-visitor-keys update:
  • espree update:
  • eslint-scope update:
  • eslint update:

Participation

  • I am willing to submit a pull request for this change.

Additional comments

If I use multiple options, the command will be too long. And I can't use the third build tool.

@LwCoderNovice LwCoderNovice added core Relates to ESLint's core APIs and features new syntax This issue is related to new syntax that has reached stage 4 labels Feb 28, 2023
@Rec0iL99
Copy link
Member

Hi @LwCoderNovice, thanks for the suggestion. I just want to confirm to make sure we're on the same page. You have a lot of options that you want to pass to your CLI when executing ESLint from the terminal, so you want to include those options in the .eslintrc.* config file.

I don't think your proposal will be accepted for the .eslintrc.* because we aren’t currently making any changes to the current config system while we are putting our focus on the new one. You can track it's progress here #13481 and rfc.

I'm leaving this open for someone from the core team to confirm and close if needed.

@mdjermanovic
Copy link
Member

format and output-file are CLI-specific options so they wouldn't make sense in eslint config files as ESLint can also be used through API. You can always run eslint CLI from a script and maintain options in the script.

@mdjermanovic mdjermanovic closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2023
@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators Aug 28, 2023
@eslint-github-bot eslint-github-bot bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Aug 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion core Relates to ESLint's core APIs and features new syntax This issue is related to new syntax that has reached stage 4
Projects
Archived in project
Development

No branches or pull requests

3 participants