jaredpalmer / tsdx

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

.eslintrc.js file or any other config not created on new tsdx build #984

Open chrisbull opened 3 years ago

chrisbull commented 3 years ago

Current Behavior

When creating a new tsdx app running npx tsdx create my-new-app no .eslintrc.js file gets created even though I know there is a script to do so. Not sure if it's just my machine. The issue is that eslint doesn't then run correctly using VSCode, because the eslint plugin is looking for some kind of config.

Expected behavior

Expecting that the create script to generate a .eslintrc.js file or place eslintCongfig inside the package.json

Suggested solution(s)

I know there is a script. Is it not working?

Additional context

If I manually add in

"eslintConfig": {
    "extends": [
      "react-app",
      "prettier/@typescript-eslint",
      "plugin:prettier/recommended"
    ]
  },

to package.json it works

Your environment

  System:
    OS: macOS 11.2.2
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 147.98 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.1 - ~/.nvm/versions/node/v14.15.1/bin/node
    Yarn: 1.22.5 - ~/.yarn/bin/yarn
    npm: 6.14.8 - ~/.nvm/versions/node/v14.15.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 89.0.4389.72
    Firefox: 76.0.1
    Safari: 14.0.3
  npmPackages:
    tsdx: ^0.14.1 => 0.14.1 
    typescript: ^4.2.3 => 4.2.3