W
W
Wayne12121212021-04-09 13:01:38
Node.js
Wayne1212121, 2021-04-09 13:01:38

How to automatically connect eslint in ts-node-dev on change?

Hello!
How can I make npm run lint automatically run on save when I run npm run dev?

current package.json

"scripts": {
    "dev": "ts-node-dev --respawn src/index.ts",
    "build": "tsc && node dist/*",
    "start": "node dist/index.js",
    "lint": "eslint . --ext .ts",
    "lint:fix": "eslint . --ext .ts --fix",
    "prettier": "prettier --config .prettierrc 'src/**/*.ts' --write"
  },


I would be very grateful for your help!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question