no-file-level-lint-suppression
WarningWarningWarningKeep suppressions local: no #![allow], /* eslint-disable */, @ts-nocheck or ignore_for_file.
#![allow(clippy::useless_let_if_seq)]fn run() {}#![forbid(unsafe_code)]fn run() {}/* eslint-disable */const a = 1;// @ts-nocheckconst a = 1;// eslint-disable-next-line no-console -- startup bannerconsole.warn("ready");// ignore_for_file: avoid_printvoid run() {}// ignore: deprecated_member_usevoid run() {}How to fix
Move it to the item that needs it and give a reason.
How to fix
Use eslint-disable-next-line or @ts-expect-error on the line that needs it, with a reason.
How to fix
Use // ignore: on the line that needs it, with a comment above saying why.