When get the error by running
npm run lint -w myFolder
Error messages
Oops! Something went wrong! :(
ESLint: 9.12.0
TypeError: ObjectSchema is not a constructor
at new Config (/node_modules/eslint/lib/config/config.js:175:24)
at [finalizeConfig] (/node_modules/eslint/lib/config/flat-config-array.js:216:16)
at FlatConfigArray.getConfigWithStatus (/node_modules/@eslint/config-array/dist/cjs/index.cjs:1102:55)
at FlatConfigArray.getConfig
...
Root cause
The version specified in package.json is 9.9.0, but the error log shows that the command is running ESLint version 9.12.0:
Run the command below again to see the correct results
npm run lint -w myFolder
SOCIAL SHARE CARD GENERATOR