With eslint you can run it as script with:
scripts: {
lint: "node ./node_modules/eslint/bin/eslint.js --ext .js",
}
I've changed to typescript and are using typescript-eslint-parser. Works in webstorm. But how do I run it as script? Changing extension to .ts is not working
lint: "node ./node_modules/eslint/bin/eslint.js --ext .ts",
The error:
error Missing file extension "ts" for "../controller/..
"parser": "typescript-eslint-parser". Is that what you mean when you say that you change to typescript-eslint-parser?tslintinstead then?"plugins": ["typescript"]in your ESLint configuration file?