原文 - How to Ignore and Disable TypeScript Rules
在TypeScript文件中禁用规则:
@ts-ignore
– TypeScript-ESLint syntax for ignoring TypeScript ruleseslint-disable-next-line
– ESLint and TypeScript-ESLint syntax for disabling non-ts rulestslint:disable-next-line
– deprecated TSLint syntax
例如:
// @ts-ignore
const num :number = 'A';