ignore eslint error: 'import' and 'export' may only appear at the top level

前端 未结 3 1018
-上瘾入骨i
-上瘾入骨i 2020-12-01 15:50

Is it possible to deactivate this error in eslint?

Parsing error: \'import\' and \'export\' may only appear at the top level
3条回答
  •  天涯浪人
    2020-12-01 16:16

    my solution incase other dont work

    "parserOptions": {
        "ecmaVersion": 6,
        "sourceType": "module"
    }
    

提交回复
热议问题