ESLint

Updated: 2018-11-21

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 */