You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running eslint on index ts, following output is generated
Oops! Something went wrong! :(
ESLint: 8.45.0
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/edward/git/thingweb-playground/packages/validator/.eslintrc.js from /usr/lib/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs not supported.
Instead change the require of .eslintrc.js in /usr/lib/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs to a dynamic import() which is available in all CommonJS modules.
at module.exports [as default] (/usr/lib/node_modules/eslint/node_modules/import-fresh/index.js:32:59)
at loadJSConfigFile (/usr/lib/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2574:47)
at loadConfigFile (/usr/lib/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2658:20)
at ConfigArrayFactory.loadInDirectory (/usr/lib/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2868:34)
at CascadingConfigArrayFactory._loadConfigInAncestors (/usr/lib/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3860:46)
at CascadingConfigArrayFactory._loadConfigInAncestors (/usr/lib/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3879:20)
at CascadingConfigArrayFactory.getConfigArrayForFile (/usr/lib/node_modules/eslint/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3781:18)
at FileEnumerator._iterateFilesWithFile (/usr/lib/node_modules/eslint/lib/cli-engine/file-enumerator.js:368:43)
at FileEnumerator._iterateFiles (/usr/lib/node_modules/eslint/lib/cli-engine/file-enumerator.js:349:25)
at FileEnumerator.iterateFiles (/usr/lib/node_modules/eslint/lib/cli-engine/file-enumerator.js:299:59)
at iterateFiles.next (<anonymous>)
at CLIEngine.executeOnFiles (/usr/lib/node_modules/eslint/lib/cli-engine/cli-engine.js:797:48)
at ESLint.lintFiles (/usr/lib/node_modules/eslint/lib/eslint/eslint.js:551:23)
at Object.execute (/usr/lib/node_modules/eslint/lib/cli.js:391:36)
at async main (/usr/lib/node_modules/eslint/bin/eslint.js:135:24)
The text was updated successfully, but these errors were encountered:
When running eslint on index ts, following output is generated
The text was updated successfully, but these errors were encountered: