/eslint9-test

Primary LanguageJavaScript

ESLint 9 import/no-unresolved problem

Run

npm run lint

Response:

/eslint9-test/eslint.config.cjs
  0:0  error  Parsing error: /eslint9-test/eslint.config.cjs was not found by the project service. Consider either including it in the tsconfig.json or including it in allowDefaultProject

/eslint9-test/libs/blah/src/index.ts
  1:15  error  Unable to resolve path to module './lib/blah'  import/no-unresolved

/eslint9-test/libs/blah/src/lib/blah.ts
   1:10  error  'add' is defined but never used                              @typescript-eslint/no-unused-vars
   1:21  error  Unable to resolve path to module './utils'                   import/no-unresolved
   7:5   error  'a' is never reassigned. Use 'const' instead                 prefer-const
  11:8   error  Async function 'doSomethingAsync' has no 'await' expression  @typescript-eslint/require-await