- Ashik Nesin
Similar to ignoring a line in TypeScript by adding the
// @ts-ignore directive before a line, You can also ignore an entire file itself by using the
// @ts-nocheck directive by adding that at the top of the file.
Because it removes the type safety which is the main reason why many of us use TypeScript in the first place.
Note: It is available only in latest versions of TypeScript
Happy disabling rules!