M
M
Marty McFly2019-08-06 10:47:03
phpstorm
Marty McFly, 2019-08-06 10:47:03

Is it possible to check for console.log on commit in phpstorm?

Hello!
Is it possible in Phpstorm to check forgotten console logs in modified files, as, for example, TODO are checked?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Arushanov, 2019-08-06
@alex_shevch

5d49347908c69246947434.png
Open settings ->
In search todo
Version Control -> Commit Dialog -> Check TODO - Must be ticked
next to it Configure (or select TODO in the menu) -> and there you can configure patterns for the so-called TODO
Perhaps this will work.
Well, or dig towards git hooks "pre-commit"

R
RidgeA, 2019-08-06
@RidgeA

https://eslint.org/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question