ifdef-loader icon indicating copy to clipboard operation
ifdef-loader copied to clipboard

ESLint bad indentation

Open kekkokk opened this issue 4 years ago • 2 comments

The idea to use // #code as a "placeholder" to make eslint works is very appreciated but substituting // #code with spaces lead eslint to complain about the fact that expected indentation was 0 but found 9.

I think we just should replace with "" to maintain the real intended indentation

https://github.com/nippur72/ifdef-loader/blob/b783f8b0cf65fca8bc0f053b7808a045b4f6440f/preprocessor.ts#L272

kekkokk avatar Sep 06 '21 14:09 kekkokk

unfortunately spaces are needed to make source source maps work (input and output file have a 1:1 correspondence on a character basis).

nippur72 avatar Sep 07 '21 09:09 nippur72

any ideas on how to resolve? maybe adding some eslint spicific comment at the end of the line to skip the indentation check?

kekkokk avatar Sep 07 '21 12:09 kekkokk