Configure ESLint for new projects (Flat Config)
mainFor ESLint v9 and later, or ESLint v8.57+ using flat config, you must provide an ESLint configuration file. Common filenames include:
eslint.config.js(most common)eslint.config.mjseslint.config.cjseslint.config.tseslint.config.mts
You can automatically generate a starter configuration by running the following command in your terminal:
npx eslint --init