-
Notifications
You must be signed in to change notification settings - Fork 950
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
--no-eslintrc flag does not work anymore without setting ESLINT_USE_FLAT_CONFIG=false for ESlint #5688
--no-eslintrc flag does not work anymore without setting ESLINT_USE_FLAT_CONFIG=false for ESlint #5688
Comments
It seems the issue is relevant for ESLint starting from v9.x |
Hi @akolpakov-somehash ! This is a fair request, although it looks like a feature request, rather than a bug. I think the way to go would be to switch to flat config, and deprecate the eslintrc configuration file. |
Hi, actually the flat format is supported since version v8.X |
We got another report about this (#5808). As explained in the blog post linked below, this shouldn't be an issue until ESlint >= I think this is triggered by the presence of a flat configuration file, such as Some references: |
- Remove --no-eslintrc to simplify the upgrade path to ESlint >= v9, because v9 defaults to aonther configuration file format. - Simplify the default ESlint configuration removing options that have been deprecated, or that are equal to the default ones. Close #5688
#5809 should take care of this. |
I just tested the following:
Interestingly there is another issue :D |
- Remove --no-eslintrc to simplify the upgrade path to ESlint >= v9, because v9 defaults to aonther configuration file format. - Simplify the default ESlint configuration removing options that have been deprecated, or that are equal to the default ones. Close #5688
- Remove --no-eslintrc to simplify the upgrade path to ESlint >= v9, because v9 defaults to aonther configuration file format. - Simplify the default ESlint configuration removing options that have been deprecated, or that are equal to the default ones. Close #5688
Is there an existing issue for this?
Are you using the latest Super-linter version available?
I am using the latest Super-linter version.
I can reproduce the issue running Super-linter using complete version identifier (example: vX.Y.Z), and not just with a partial one (example: vX)
I am using the super-linter/super-linter action or container image, and not the deprecated github/super-linter action or container image.
Are you resonably sure that it's a Super-linter issue, and not an issue related to a tool that Super-linter runs?
Current Behavior
Trying to run Super-Linter via GitHub Action or locally to validate JS files, for example:
The validation consistently fails with the following error:
Expected Behavior
Validation is successful, or code-related issues arise.
Super-Linter version
Relevant log output
Steps To Reproduce
Run GitHub Action or execute the following command locally:
Anything else?
After some investigation, I found a blog post that describes the deprecation: Flat Config Rollout Plans. To fix this issue, you need to set the environmental variable
ESLINT_USE_FLAT_CONFIG=false
. However, this is not mentioned in the Super-Linter documentation and ideally should be set by default when using the--no-eslintrc
flag.The text was updated successfully, but these errors were encountered: