jaredpalmer / tsdx

Zero-config CLI for TypeScript package development
https://tsdx.io
MIT License
11.29k stars 507 forks source link

ESLint failing on fresh package #1187

Open mohsen1 opened 7 months ago

mohsen1 commented 7 months ago

Current Behavior

On a new package with no changes when running Lint:

yarn lint                                                  (base) 1288ms
yarn run v1.22.21
$ tsdx lint
Defaulting to "tsdx lint src test" 
You can override this in the package.json scripts, like "lint": "tsdx lint src otherDir"

/Users/mohsen_azimi/Desktop/test-test/src/index.ts
  0:0  error  Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead

/Users/mohsen_azimi/Desktop/test-test/test/blah.test.ts
  0:0  error  Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead

✖ 2 problems (2 errors, 0 warnings)

Expected behavior

No lint error

Suggested solution(s)

Fix dependencies

Additional context

Your environment


  System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 325.45 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.20.2 - ~/.volta/tools/image/node/18.20.2/bin/node
    Yarn: 1.22.21 - ~/.volta/tools/image/yarn/1.22.21/bin/yarn
    npm: 10.5.0 - ~/.volta/tools/image/node/18.20.2/bin/npm
    pnpm: 8.11.0 - ~/.volta/bin/pnpm
    bun: 0.1.1 - ~/.bun/bin/bun
    Watchman: 2024.01.22.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 124.0.6367.79
    Edge: 124.0.2478.51
    Safari: 17.4.1
  npmPackages:
    tsdx: ^0.14.1 => 0.14.1 
    typescript: ^5.4.5 => 5.4.5