Add --ext to eslintrc
or other config files
#11223
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
enhancement
This change enhances an existing feature of ESLint
triage
An ESLint team member will look at this issue soon
The version of ESLint you are using.
5.6.0
The problem you want to solve.
Add extensions to
eslintrc
Main problem is that I would like to lint
js
andjsx
.I saw that there was a pull request closed nd it seems to be solved, but I think it is not.
Pull Request
#8515
Mysterious line only adding
js
as default :$https://github.com/eslint/eslint/blob/master/conf/default-cli-options.js#L15
Your take on the correct solution to problem.
Yes,
I as was checking we just need to make some small changes but I would like to check with you first.
config-schema
after that we need to add this to the CLI-Engine constructor
Inside of
this.getConfigForFile()
we callgetConfig()
fromconfig.js
file, we might need to add this conditional so we can have this parameterext
available in the configThis way now we can have a correct list of files to execute according to this param.
executeOnFiles()
in file cli.engine.jsI think this was the best way possible, but please let me know if there is an easier way to do it.
Are you willing to submit a pull request to implement this change?
sure! without problem ;)
The text was updated successfully, but these errors were encountered: