Last Updated: 2023-09-23

Ignore Warning: Parsing error: 'import' and 'export' may only appear at the top level

Use babel-eslint as parser and allow import/export everywhere. In .eslintrc:

  "parser": "babel-eslint",
  "parserOptions": {
    "sourceType": "module",
    "allowImportExportEverywhere": true

Ignore Warning: react/prop-types

Add to .eslintrc

  "plugins": ["react"],
  "rules": {
    "react/prop-types": 0

Or for just one file, add to the top of the file:

/* eslint react/prop-types: 0 */

Error: 'Set' is not defined. no-undef

Add to .eslintrc:

  "env": { "es6": true }