Closed SamSalvatico closed 3 weeks ago
it's working as expected. --ext
is eslintrc-mode-only, and has been documented: https://eslint.org/docs/latest/use/command-line-interface#--ext
In flat configs, you can use {files: ["**/*.ts"], ...config}
, and it just works.
Thank you!
it's working as expected.
--ext
is eslintrc-mode-only, and has been documented: https://eslint.org/docs/latest/use/command-line-interface#--ext
One note: the examples under the disclaimer are not working, if no additional configurations are set
npx eslint . --ext .ts
Environment
Node version: v20.11.1 npm version: v10.5.2 Local ESLint version: v9.1.1 Global ESLint version: Not found Operating System: darwin 23.4.0
What parser are you using?
@typescript-eslint/parser
What did you do?
Configuration
``` "scripts": { "lint": "eslint . --ext .ts" } ```What did you expect to happen?
--ext
works as expected or remove it from docsWhat actually happened?
Moving to
v9.1.1
I am getting the following errorI opened the URL, but
--ext
is extensively used in docsLink to Minimal Reproducible Example
https://eslint.org/play/
Participation
Additional comments
No response