Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Remove default .js from --ext CLI option
PR #12677, `Breaking: lint overrides files`, removed the default `.js` value from the default CLIEngine options. However, it did not remove the same default value from the `--ext` option parsed by Optionator. Because of this, when running `eslint .` without the `--ext` option, Optionator would insert a default `--ext .js` value that would be passed on to the CLIEngine. ESLint only lints `overrides` files if the `--ext` CLI option is not passed, so the default `--ext .js` option prevented ESLint from ever reaching the `overrides` file path checking flow.
- Loading branch information