The general end of line comment, // eslint-disable-line, does not need anything after it: There isn’t any need to look up a code to specify what you wish ESLint to ignore. If you need to have any syntax ignored for any reason, other than a quick debugging, you have problems: Why not update your ESLint configuration? I enjoy // eslint-disable-line to allow me to insert console for a quick ...
Turning off an ESLint rule for a specific line - Stack Overflow
For anyone else confused by the comments, /* eslint-disable no-use-before-define / is definitely a correct answer which disables a specific rule for the whole file. Notice the edits in the answer. The comments were directed at the original answer which was "Just place / eslint-disable */ at the top of the file."