Closed grinsteindavid closed 3 years ago
Hey thanks for posting this. Before I recommend anything could you post the debug logs? Try saving a few files that you expect it to run on so we can capture that information as well.
Closing due to inactivity. If you are still experiencing problems you can reopen the issue.
I have the same issue. And also it doesn't lint "ts" files at all, but eslint by itself works great. I have typescript-eslint installed like the issue author has, maybe it's the reason.
Eslint-Watch: v8.0.0 Eslint: v8.14.0
UPD: fixed with "--ext=.js,.ts"
I have the same issue. And also it doesn't lint "ts" files at all, but eslint by itself works great. I have typescript-eslint installed like the issue author has, maybe it's the reason.
Eslint-Watch: v8.0.0 Eslint: v8.14.0
UPD: fixed with "--ext=.js,.ts"
@lmcsu This worked! However i find it weird that it runs normally the first time, without showing any warning, even tho you don't specify the extension, this was confusing, thanks for reporting your solution!
I think this should be re-opened, as many people use eslint with typescript.
Environment
Basic Description of the problem
When im running esw in watch mode, it runs just once and then every change to the file does not update the terminal ouput, only if I press ENTER key then it updates the terminal
How to reproduce it
"lint_unit_test:watch": "esw \"src/*/.unit.test.**\" --no-eslintrc --config eslint_unit_test.json -w"
{ "root": true, "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint", "jest", "prettier"], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:jest/recommended", "plugin:jest/all" ], "overrides": [ { "files": ["src/*/.unit.test.**"] } ], "rules": { "@typescript-eslint/no-explicit-any": "error", "jest/prefer-expect-assertions": "off", "prettier/prettier": "error", "curly": "error" } }