Is there any configuration in visual studio code that only lint changed the file (python, javascript, CSS)?. I don't want to lint existing/unmodified file. I just to want lint the code which I have written.
Note. used flake8 and eslint for linting
Python 扩展仅对打开的文件进行 lint,但不会区分未修改或脏文件。
for vs code, if we can enable lint on save,
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
then we will only lint changed file or we can use scripts like
git diff --name-only --diff-filter=ACMRTUXB master | grep -E "(.js$|.ts$)"
https://gist.github.com/seeliang/0f0de424d1cdc4541c338f4ee93b7e6a
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.