Answers for "how to disable eslint in particular file"

8

disable eslint whole file

//add this block comment in the first line
//it must be a BLOCK comment!!!

/* eslint-disable */
Posted by: Guest on February-06-2021
2

disable eslint specific rule

/* eslint-disable <RULE> */
/* eslint-disable <RULE>, <RULE> */

Examples: 

/* eslint-disable no-labels */
/* eslint-disable no-labels, no-unreachable */
Posted by: Guest on June-19-2021

Browse Popular Code Answers by Language