ESLint: Disable formatting in part of the code

There will be cases where you will need to disable formatting in part of a code.

To do that you may use eslint-disable and eslint-enabled like so:

<!-- eslint-disable -->
<Link
    :href="route('cookie-policy')"
    class="underline"
    >Cookies Policy</Link>.
<!-- eslint-enable -->

Without it, ESLint will force the text inside the Link tag to be in a dedicated line meaning the underline will take effect for an extra space.

Leave a Reply

Your email address will not be published. Required fields are marked *