jeudi 16 septembre 2021

Eslint disable for a specific line pattern

Example, //test is a pattern used in one of my code processing to ignore some testing. And we matched exactly //test to exclude the processing. But when we apply Esline auto fix, //test automatically changes in // test (space added as formatting)

So, Extra processing is happening due to it.

Hence I had googled to fix this. possible solutions are,

  1. matching both patterns(//test & // test - this is out of my context, had to raise and wait for the fix)
  2. Or else, had to add eslint disable comment to disable eslint processing around that comments.

Is there any way to configure a line pattern to ignore commonly in .eslintrc.js? Curious to know about it. So far checked, there is a pattern to exclude file folder paths only.

Please let me know here if anyone knows about this(line pattern ignoring commonly)




Aucun commentaire:

Enregistrer un commentaire