.eslintrc.json is outdated
When following part 4 of the step-by-step guide, Set Up a Lint Check, I'm getting the following error when running npx eslint webapp:
Oops! Something went wrong! :(
ESLint: 9.8.0
ESLint couldn't find an eslint.config.(js|mjs|cjs) file.
From ESLint v9.0.0, the default configuration file is now eslint.config.js.
If you are using a .eslintrc.* file, please follow the migration guide
to update your configuration file to the new format:
https://eslint.org/docs/latest/use/configure/migration-guide
If you still have problems after following the migration guide, please stop by
https://eslint.org/chat/help to chat with the team.
Running the configuration migrator in the migration guide leads to another error:
0:0 error Parsing error: "parserOptions.project" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided project(s): webapp/Component.js
Could you update the documentation and code to take into account these changes to ESLint?
Environment information: npm --version: 10.8.2 node --version: v22.6.0
Thanks, yes, we should do this. The sample code requires ESLint 8, but the instructions will now result in version 9.
@akudev - we can adopt it to version 9 - I will also adopt the templates by this week.
@ZZzzaaKK - ESLint has been updated to version 9 in the main and testing branch.