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


Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.