es6
reactjs
ECMAScript6
ESLint
VSCode

VSCode + ES6 module: Parsing error: The keyword 'import' is reserved

If you're a VSCode+React coder, and you installed the ESLint in the VSCode, you might found that there is an error:

Parsing error: The keyword 'import' is reserved.

The problem is: The "module" setting for reactjs is not enabled at the beginning.

But it's an easy fix :)

Just overwrite some settings in the User Settings of the VSCode:

"eslint.options": {
        "parserOptions": {
            "ecmaVersion": 6,
            "sourceType": "module",
            "ecmaFeatures": {
                "jsx": true,
                "modules": true
            }
        }
    }

Done!