Check out example codes for "Do not use "// @ts-ignore" comments because they suppress compilation errors". It will help you in understanding the concepts better.

Code Example 1

/* 
Step 1: Add this rule to `.eslintrc` file
Step 2: Restart local server
*/
  "rules": {
    "@typescript-eslint/ban-ts-ignore": "off"
  }
...

Learn ReactJs, React Native from akashmittal.com