79348867

Date: 2025-01-11 20:54:54
Score: 1.5
Natty:
Report link

With modern eslint (from v8.21.0), if you're using the new config file eslint.config.js, the --ext option is no longer supported. Instead, specify the files to lint in the config, and then run eslint . to lint all specified files.

Example eslint.config.js:

/** @type {import('eslint').Linter.Config[]} */
export default [
  { files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
  { ignores: ["dist" ] },
  // Other config options here
];
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Adam