Ethan

Results 18 comments of Ethan

I looked into how the documentation gets generated and how the example gets added to the map. Examples are defined in a jsdoc comment in the source file, and an...

@smallsaucepan That description looks good to me. With the diagram, that should be enough to clarify what's happening. `inspectJson` would be a nice feature for documentation in general, but it...

I tried getting around this by removing the `--eslintrc` option. ```yaml # .mega-linter.yml # ...other configs JAVASCRIPT_ES_CONFIG_FILE: ./eslint.config.mjs JAVASCRIPT_ES_COMMAND_REMOVE_ARGUMENTS: ["--eslintrc"] ``` When I run the linter with this configuration, I...

I found that replacing `--eslintrc` with `--no-eslintrc` fixed that error, but I got another one: ``` - Using [eslint v8.57.0] https://megalinter.io/7.11.1/descriptors/javascript_eslint - MegaLinter key: [JAVASCRIPT_ES] - Rules config: [/eslint.config.mjs] -...

Yes, the eslint website has a [migration guide](https://eslint.org/docs/latest/use/configure/migration-guide#start-using-flat-config-files) which mentions the flat config is the default in eslint 9, but is also available in eslint 8.

It depends on what we can do in [EslintLinter.py](https://github.com/oxsecurity/megalinter/blob/75d7a207713eb633014d1f332d72f196fa966d2a/megalinter/linters/EslintLinter.py) ESlint v8 and v9 still support both formats, the default just changed between the two versions. We can set an environment...

Frankly, I knew nothing about the flat config until just a few days ago. It seems like [support for eslintrc will be dropped when v10 releases](https://eslint.org/blog/2023/10/flat-config-rollout-plans/#eslintrc-removed-in-eslint-v10.0.0), so megalinter may eventually...

So, I have some good news. Under the right circumstances, this configuration does currently work: ```yaml JAVASCRIPT_ES_CONFIG_FILE: ./eslint.config.mjs # or .js, .cjs JAVASCRIPT_ES_COMMAND_REMOVE_ARGUMENTS: ["--no-eslintrc"] # Not valid option for eslint...

@echoix You might be right. Adding .eslintrc and .eslintignore might be causing that. I noticed these errors at the bottom of my lint logs. ``` [Updated Sources Reporter] Unable to...

> ```yaml > # first ensure .eslintignore is not present > - command: rm -f .eslintignore > cwd: workspace > ``` @serpro69 Removing the .eslintignore file by force might be...