You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm struggling to configure Javascript (eslint) linter for my project.
The problem is that the .eslintrc.js is not found (since it is a module, not in the root) resulting on a message:
[Activation] JAVASCRIPT_ES has been set inactive, as none of these files has been found: ['.eslintrc.json', '.eslintrc.yml', '.eslintrc.yaml', '.eslintrc.js', '.eslintrc.cjs', 'package.json:eslintConfig']
I am trying to set a different path for my .eslintrc.js file, since it is not in the root where I have mega-linter configured for Groovy.
So my question is: how can I specify this value from the mega-linter.yaml?
Is it better to just create a new mega-linter.yaml inside that module and use it only for javascript there?
What if I want to analyse both Groovy and Javascript in one go?
I have tried this several variants of the command (full path, relative, env variable) but none works. Any help would be appreciated.
ENABLE:
- GROOVY
- JAVASCRIPT
- TYPESCRIPT
SHOW_ELAPSED_TIME: true
# Upload report files to fileIo
FILEIO_REPORTER: false
# Also prints to the console Warnings. Some warnings should also be mandatory to be fixed,
# but for now they are not blocking.
OUTPUT_DETAIL: detailed
# Uncomment if you want MegaLinter to detect errors but not block CI to pass
# DISABLE_ERRORS: true
# Ignore certain files from the linter
FILTER_REGEX_EXCLUDE: (.*\.gradle)
# Will lint all files
VALIDATE_ALL_CODEBASE: false
# issue is here
JAVASCRIPT_ES_CONFIG_FILE: web/.eslintrc.js
JAVASCRIPT_ES_ARGUMENTS: "-c web/.eslintrc.js"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi.
I'm struggling to configure Javascript (eslint) linter for my project.
The problem is that the
.eslintrc.js
is not found (since it is a module, not in the root) resulting on a message:I am trying to set a different path for my
.eslintrc.js
file, since it is not in the root where I have mega-linter configured for Groovy.So my question is: how can I specify this value from the mega-linter.yaml?
Is it better to just create a new
mega-linter.yaml
inside that module and use it only for javascript there?What if I want to analyse both Groovy and Javascript in one go?
I have tried this several variants of the command (full path, relative, env variable) but none works. Any help would be appreciated.
I'm running it like this:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions